Ignore:
Timestamp:
07/12/16 20:22:23 (9 years ago)
Author:
epyon
Message:
  • several STL updates
  • several minor fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdl/sdl_window.cc

    r492 r505  
    133133        SDL_GL_SetSwapInterval( enabled ? 1 : 0 );
    134134}
     135
     136void 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
     142nv::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.