Changeset 98 for trunk/src/gl


Ignore:
Timestamp:
06/03/13 16:06:51 (12 years ago)
Author:
epyon
Message:
  • window stores and can return it's device
Location:
trunk/src/gl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_device.cc

    r92 r98  
    1717window* gl_device::create_window( uint16 width, uint16 height )
    1818{
    19         return new gl_window( width, height );
     19        return new gl_window( this, width, height );
    2020}
    2121
  • trunk/src/gl/gl_window.cc

    r93 r98  
    148148
    149149
    150 gl_window::gl_window( uint16 width, uint16 height )
    151         : m_width( width ), m_height( height ), m_title("NV Engine"), m_screen( nullptr )
     150gl_window::gl_window( device* dev, uint16 width, uint16 height )
     151        : m_device( dev ), m_width( width ), m_height( height ), m_title("NV Engine"), m_screen( nullptr )
    152152{
    153153        int flags = SDL_OPENGL;
Note: See TracChangeset for help on using the changeset viewer.