var searchIndex = {}; searchIndex["gfx_graphics"] = {"doc":"A [Piston 2D graphics](https://github.com/pistondevelopers/graphics) back-end using [gfx-rs](https://github.com/gfx-rs/gfx).","items":[[3,"Gfx2d","gfx_graphics","The data used for drawing 2D graphics.",null,null],[3,"GfxGraphics","","Used for rendering 2D graphics.",null,null],[12,"encoder","","Provide access to the `gfx::Encoder` in case a user needs to update textures for caching,\netc.",0,null],[3,"GlyphCache","","A struct used for caching a rendered font.",null,null],[12,"font","","The font.",1,null],[4,"GlyphError","","An enum to represent various possible run-time errors that may occur.",null,null],[13,"Texture","","An error happened when creating a gfx texture.",2,null],[13,"IoError","","An io error happened when reading font files.",2,null],[13,"NoFont","","No font was found in the file.",2,null],[11,"new","","Creates a new Gfx2d object.",3,{"inputs":[{"name":"opengl"},{"name":"f"}],"output":{"name":"self"}}],[11,"draw","","Renders graphics to a Gfx renderer.",3,null],[11,"new","","Creates a new object for rendering 2D graphics.",0,{"inputs":[{"name":"encoder"},{"name":"rendertargetview"},{"name":"depthstencilview"},{"name":"gfx2d"}],"output":{"name":"self"}}],[11,"has_texture_alpha","","Returns true if texture has alpha channel.",0,null],[11,"clear_color","","",0,null],[11,"clear_stencil","","",0,null],[11,"tri_list","","",0,null],[11,"tri_list_uv","","",0,null],[11,"fmt","","",2,null],[11,"from","","",2,{"inputs":[{"name":"combinederror"}],"output":{"name":"self"}}],[11,"from","","",2,{"inputs":[{"name":"error"}],"output":{"name":"self"}}],[11,"new","","Constructor for a GlyphCache.",1,{"inputs":[{"name":"p"},{"name":"f"}],"output":{"name":"result"}}],[11,"character","","",1,null]],"paths":[[3,"GfxGraphics"],[3,"GlyphCache"],[4,"GlyphError"],[3,"Gfx2d"]]}; initSearch(searchIndex);