Changeset 228 for trunk/src/gl


Ignore:
Timestamp:
02/04/14 03:50:28 (11 years ago)
Author:
epyon
Message:
  • various untracked changes
Location:
trunk/src/gl
Files:
2 edited

Legend:

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

    r184 r228  
    1515using namespace nv;
    1616
    17 window* gl_device::create_window( uint16 width, uint16 height )
     17window* gl_device::create_window( uint16 width, uint16 height, bool fullscreen )
    1818{
    19         return new gl_window( this, width, height );
     19        return new gl_window( this, width, height, fullscreen );
    2020}
    2121
  • trunk/src/gl/gl_window.cc

    r184 r228  
    203203
    204204
    205 gl_window::gl_window( device* dev, uint16 width, uint16 height )
     205gl_window::gl_window( device* dev, uint16 width, uint16 height, bool fullscreen )
    206206        : m_device( dev ), m_width( width ), m_height( height ), m_title("NV Engine"), m_handle( nullptr )
    207207{
    208208#if NV_SDL_VERSION == NV_SDL_12
    209209        uint32 flags = SDL_OPENGL;
     210        if (fullscreen) flags |= SDL_FULLSCREEN;
    210211        m_handle = SDL_SetVideoMode( width, height, 32, flags );
    211212#elif NV_SDL_VERSION == NV_SDL_20
    212213        uint32 flags = SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN;
     214        if (fullscreen) flags |= SDL_FULLSCREEN;
    213215        m_handle = SDL_CreateWindow("Nova Engine", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
    214216                width, height, flags );
Note: See TracChangeset for help on using the changeset viewer.