Changeset 406 for trunk/src/gl/gl_window.cc
- Timestamp:
- 06/20/15 00:05:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_window.cc
r395 r406 15 15 { 16 16 #if NV_PLATFORM == NV_WINDOWS 17 ::SwapBuffers( (HDC)m_hwnd);17 ::SwapBuffers( reinterpret_cast<HDC>( m_hwnd ) ); 18 18 #else 19 19 NV_ASSERT( false, "Native GL context currently only working on Windows!" ); … … 26 26 { 27 27 #if NV_PLATFORM == NV_WINDOWS 28 dynwglDeleteContext( (HGLRC)m_context->get_native_handle() );28 dynwglDeleteContext( reinterpret_cast<HGLRC>( m_context->get_native_handle() ) ); 29 29 #endif 30 30 } … … 40 40 m_input = a_input; 41 41 42 m_handle = (void*)handle;42 m_handle = handle; 43 43 44 44 // TODO: error checking 45 HDC hdc = (HDC)dc;45 HDC hdc = reinterpret_cast<HDC>( dc ); 46 46 47 47 const int wgl_attrib_list[] = … … 103 103 // m_height = (uint16)rect.bottom; 104 104 m_handle = wm->adopt_window( handle ); 105 m_hwnd = ::GetDC( (HWND)handle);105 m_hwnd = ::GetDC( reinterpret_cast<HWND>( handle ) ); 106 106 m_context->set_viewport( nv::ivec4( 0, 0, m_width, m_height ) ); 107 107 #else
Note: See TracChangeset
for help on using the changeset viewer.