var searchIndex = {}; searchIndex["piston_window"] = {"doc":"The official Piston window wrapper for the Piston game engine","items":[[4,"OpenGL","piston_window","",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],[4,"Error","","An enum to represent various possible run-time errors that may occur.",null,null],[13,"Texture","","An error happened when creating a gfx texture.",1,null],[13,"IoError","","An io error happened when reading font files.",1,null],[3,"Texture","","Represents a texture.",null,null],[12,"surface","","Pixel storage for texture.",2,null],[12,"view","","View used by shader.",2,null],[3,"TextureSettings","","Texture creation parameters.",null,null],[4,"Flip","","Flip settings.",null,null],[13,"None","","Does not flip.",3,null],[13,"Vertical","","Flips image vertically.",3,null],[3,"PistonWindow","","Contains everything required for controlling window, graphics, event loop.",null,null],[12,"window","","The window.",4,null],[12,"encoder","","GFX encoder.",4,null],[12,"device","","GFX device.",4,null],[12,"output_color","","Output frame buffer.",4,null],[12,"output_stencil","","Output stencil buffer.",4,null],[12,"g2d","","Gfx2d.",4,null],[12,"events","","The event loop.",4,null],[12,"event","","The event.",4,null],[12,"app","","Application structure.",4,null],[12,"factory","","The factory that was created along with the device.",4,null],[5,"empty_app","","Creates a new empty application.",null,{"inputs":[],"output":{"name":"rc"}}],[6,"GfxEncoder","","Actual gfx::Stream implementation carried by the window.",null,null],[6,"Glyphs","","Glyph cache.",null,null],[6,"G2d","","2D graphics.",null,null],[6,"G2dTexture","","Texture type compatible with `G2d`.",null,null],[11,"build_from_window_settings","","",4,{"inputs":[{"name":"windowsettings"}],"output":{"name":"result"}}],[11,"clone","","",4,null],[11,"new","","Creates a new piston window.",4,{"inputs":[{"name":"opengl"},{"name":"u8"},{"name":"rc"},{"name":"rc"}],"output":{"name":"self"}}],[11,"app","","Changes application structure.",4,null],[11,"app_by_value","","Changes application structure.",4,null],[11,"draw_2d","","Renders 2D graphics.",4,null],[11,"draw_3d","","Renders 3D graphics.",4,null],[11,"next","","",4,null],[11,"event_id","","",4,null],[11,"with_args","","",4,null],[11,"from_args","","",4,{"inputs":[{"name":"eventid"},{"name":"any"},{"name":"self"}],"output":{"name":"option"}}],[11,"should_close","","",4,null],[11,"set_should_close","","",4,null],[11,"size","","",4,null],[11,"draw_size","","",4,null],[11,"swap_buffers","","",4,null],[11,"poll_event","","",4,null],[11,"get_title","","",4,null],[11,"set_title","","",4,null],[11,"get_exit_on_esc","","",4,null],[11,"set_exit_on_esc","","",4,null],[11,"set_capture_cursor","","",4,null],[11,"set_ups","","",4,null],[11,"set_max_fps","","",4,null],[11,"set_swap_buffers","","",4,null],[11,"set_bench_mode","","",4,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],[11,"fmt","","",1,null],[11,"from","","",1,{"inputs":[{"name":"combinederror"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"empty","","Returns empty texture.",2,{"inputs":[{"name":"f"}],"output":{"name":"result"}}],[11,"from_path","","Creates a texture from path.",2,{"inputs":[{"name":"f"},{"name":"p"},{"name":"flip"},{"name":"texturesettings"}],"output":{"name":"result"}}],[11,"from_image","","Creates a texture from image.",2,{"inputs":[{"name":"f"},{"name":"imagebuffer"},{"name":"texturesettings"}],"output":{"name":"result"}}],[11,"from_memory_alpha","","Creates texture from memory alpha.",2,null],[11,"update","","Updates the texture with an image.",2,null],[11,"eq","","",3,null],[11,"clone","","",3,null],[11,"create","","",2,null],[11,"update","","",2,null],[11,"get_size","","",2,null],[11,"new","","Create default settings.",5,{"inputs":[],"output":{"name":"texturesettings"}}],[11,"get_convert_gamma","","Gets whether to convert gamma, treated as sRGB color space.",5,null],[11,"set_convert_gamma","","Sets convert gamma.",5,null],[11,"convert_gamma","","Sets convert gamma.",5,null],[11,"get_compress","","Gets wheter compress on the GPU.",5,null],[11,"set_compress","","Sets compress.",5,null],[11,"compress","","Sets compress.",5,null],[11,"get_generate_mipmap","","Gets generate mipmap.",5,null],[11,"set_generate_mipmap","","Sets generate mipmap.",5,null],[11,"generate_mipmap","","Sets generate mipmap.",5,null],[11,"get_min","","Gets minify filter.",5,null],[11,"set_min","","Sets minify filter.",5,null],[11,"min","","Sets minify filter.",5,null],[11,"get_mag","","Gets magnify filter",5,null],[11,"set_mag","","Sets magnify filter",5,null],[11,"mag","","Sets magnify filter",5,null],[11,"get_mipmap","","Gets minify mipmap filter",5,null],[11,"set_mipmap","","Sets magnify mipmap filter, and sets generate_mipmap to true.",5,null],[11,"mipmap","","Sets magnify mipmap filter, and sets generate_mipmap to true",5,null],[11,"get_filter","","Returns the min and mag filter",5,null],[11,"set_filter","","Sets the min and mag filter",5,null],[11,"filter","","Sets the min and mag filter",5,null]],"paths":[[4,"OpenGL"],[4,"Error"],[3,"Texture"],[4,"Flip"],[3,"PistonWindow"],[3,"TextureSettings"]]}; initSearch(searchIndex);