var searchIndex = {}; searchIndex["sdl2_window"] = {"doc":"A SDL2 window back-end for the Piston game engine.","items":[[4,"OpenGL","sdl2_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],[3,"Sdl2Window","","A widow implemented by SDL2 back-end.",null,null],[12,"window","","SDL window handle.",1,null],[12,"context","","Allow dead code because this keeps track of the OpenGL context.\nWill be released on drop.",1,null],[12,"sdl_context","","SDL context.",1,null],[12,"video_subsystem","","Video subsystem.",1,null],[5,"sdl2_map_key","","Maps a SDL2 key to piston-input key.",null,{"inputs":[{"name":"keycode"}],"output":{"name":"key"}}],[5,"sdl2_map_mouse","","Maps a SDL2 mouse button to piston-input button.",null,{"inputs":[{"name":"mouse"}],"output":{"name":"mousebutton"}}],[11,"new","","Creates a new game window for SDL2. This will initialize SDL and the video subsystem.\nYou can retrieve both via the public fields on the `Sdl2Window` struct.",1,{"inputs":[{"name":"windowsettings"}],"output":{"name":"result"}}],[11,"with_subsystem","","Creates a window with the supplied SDL Video subsystem.",1,{"inputs":[{"name":"videosubsystem"},{"name":"windowsettings"}],"output":{"name":"result"}}],[11,"init_joysticks","","Initialize the joystick subsystem. Required before joystick input\nevents will be returned. Returns the number available or error.",1,null],[11,"build_from_window_settings","","",1,{"inputs":[{"name":"windowsettings"}],"output":{"name":"result"}}],[11,"drop","","",1,null],[11,"should_close","","",1,null],[11,"set_should_close","","",1,null],[11,"swap_buffers","","",1,null],[11,"size","","",1,null],[11,"poll_event","","",1,null],[11,"draw_size","","",1,null],[11,"get_title","","",1,null],[11,"set_title","","",1,null],[11,"get_exit_on_esc","","",1,null],[11,"set_exit_on_esc","","",1,null],[11,"set_capture_cursor","","",1,null],[11,"get_proc_address","","",1,null],[11,"is_current","","",1,null],[11,"make_current","","",1,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,"Sdl2Window"]]}; initSearch(searchIndex);