Changeset 505 for trunk/src/sdl/sdl_window.cc
- Timestamp:
- 07/12/16 20:22:23 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sdl/sdl_window.cc
r492 r505 133 133 SDL_GL_SetSwapInterval( enabled ? 1 : 0 ); 134 134 } 135 136 void nv::sdl::window::make_current() 137 { 138 SDL_GLContext native = static_cast<SDL_GLContext>( m_context->get_native_handle() ); 139 SDL_GL_MakeCurrent( static_cast<SDL_Window*>( m_handle ), native ); 140 } 141 142 nv::uint32 nv::sdl::window::window_id() 143 { 144 return SDL_GetWindowID( static_cast<SDL_Window*>( m_handle ) ); 145 }
Note: See TracChangeset
for help on using the changeset viewer.