var searchIndex = {}; searchIndex["opengl_graphics"] = {"doc":"An OpenGL back-end for Rust-Graphics","items":[[4,"OpenGL","opengl_graphics","",null,null],[13,"V2_0","","",0,null],[13,"V2_1","","",0,null],[13,"V3_0","","",0,null],[13,"V3_1","","",0,null],[13,"V3_2","","",0,null],[13,"V3_3","","",0,null],[13,"V4_0","","",0,null],[13,"V4_1","","",0,null],[13,"V4_2","","",0,null],[13,"V4_3","","",0,null],[13,"V4_4","","",0,null],[13,"V4_5","","",0,null],[3,"GlGraphics","","Contains OpenGL data.",null,null],[3,"Texture","","Wraps OpenGL texture data.\nThe texture gets deleted when running out of scope.",null,null],[0,"shader_utils","","Helper functions for dealing with shaders.",null,null],[3,"DynamicAttribute","opengl_graphics::shader_utils","Describes a shader attribute.",null,null],[5,"compile_shader","","Compiles a shader.",null,{"inputs":[{"name":"glenum"},{"name":"str"}],"output":{"name":"result"}}],[5,"attribute_location","","Creates a vertex buffer for an attribute from a program.",null,{"inputs":[{"name":"gluint"},{"name":"str"}],"output":{"name":"result"}}],[11,"drop","","",1,null],[11,"xyz","","Create XYZ vertex attribute.",1,{"inputs":[{"name":"gluint"},{"name":"str"},{"name":"gluint"}],"output":{"name":"result"}}],[11,"xy","","Create XY vertex attribute.",1,{"inputs":[{"name":"gluint"},{"name":"str"},{"name":"gluint"}],"output":{"name":"result"}}],[11,"rgb","","Create RGB color attribute.",1,{"inputs":[{"name":"gluint"},{"name":"str"},{"name":"gluint"}],"output":{"name":"result"}}],[11,"rgba","","Create RGBA color attribute.",1,{"inputs":[{"name":"gluint"},{"name":"str"},{"name":"gluint"}],"output":{"name":"result"}}],[11,"uv","","Create texture coordinate attribute.",1,{"inputs":[{"name":"gluint"},{"name":"str"},{"name":"gluint"}],"output":{"name":"result"}}],[11,"set","","Sets attribute data.",1,null],[0,"glyph_cache","opengl_graphics","Glyph caching",null,null],[6,"FontSize","opengl_graphics::glyph_cache","",null,null],[3,"GlyphCache","","A struct used for caching rendered font.",null,null],[12,"face","","The font face.",2,null],[6,"Character","","The type alias for font characters.",null,null],[11,"new","","Constructor for a GlyphCache.",2,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"from_bytes","","Creates a GlyphCache for a font stored in memory.",2,null],[11,"preload_chars","","Load all characters in the `chars` iterator for `size`",2,null],[11,"preload_printable_ascii","","Load all the printable ASCII characters for `size`. Includes space.",2,null],[11,"opt_character","","Return `ch` for `size` if it's already cached. Don't load.\nSee the `preload_*` functions.",2,null],[11,"character","","",2,null],[0,"error","opengl_graphics","Errors",null,null],[4,"Error","opengl_graphics::error","An enum to represent various possible run-time errors that may occur.",null,null],[13,"FreetypeError","","An error happened with the FreeType library.",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"new","opengl_graphics","Creates a new OpenGL back-end.",4,{"inputs":[{"name":"opengl"}],"output":{"name":"self"}}],[11,"viewport","","Sets viewport with normalized coordinates and center as origin.",4,null],[11,"use_program","","Sets the current program only if the program is not in use.",4,null],[11,"clear_program","","Unset the current program.",4,null],[11,"use_draw_state","","Sets the current draw state, by detecting changes.",4,null],[11,"clear_draw_state","","Unsets the current draw state.",4,null],[11,"draw","","Draws graphics.",4,null],[11,"has_texture_alpha","","Assume all textures has alpha channel for now.",4,null],[11,"clear_color","","",4,null],[11,"clear_stencil","","",4,null],[11,"tri_list","","",4,null],[11,"tri_list_uv","","",4,null],[11,"new","","Creates a new texture.",5,{"inputs":[{"name":"gluint"},{"name":"u32"},{"name":"u32"}],"output":{"name":"self"}}],[11,"get_id","","Gets the OpenGL id of the texture.",5,null],[11,"from_memory_alpha","","Loads image from memory, the format is 8-bit greyscale.",5,null],[11,"from_path","","Loads image by relative file name to the asset root.",5,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"from_image","","Creates a texture from image.",5,{"inputs":[{"name":"rgbaimage"},{"name":"texturesettings"}],"output":{"name":"self"}}],[11,"update","","Updates image with a new one.",5,null],[11,"drop","","",5,null],[11,"get_size","","",5,null],[11,"create","","",5,null],[11,"update","","",5,null],[11,"get_major_minor","","Gets the minor version of OpenGL.",0,null],[11,"to_glsl","","Gets GLSL version associated with OpenGL.",0,null],[11,"cmp","","",0,null],[11,"partial_cmp","","",0,null],[11,"eq","","",0,null],[11,"clone","","",0,null]],"paths":[[4,"OpenGL"],[3,"DynamicAttribute"],[3,"GlyphCache"],[4,"Error"],[3,"GlGraphics"],[3,"Texture"]]}; initSearch(searchIndex);