Ignore:
Timestamp:
03/09/17 13:33:03 (8 years ago)
Author:
epyon
Message:
  • ECS and windowing updates
File:
1 edited

Legend:

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

    r505 r550  
    1515using namespace nv;
    1616
    17 sdl::window::window( device* dev, uint16 width, uint16 height, bool fullscreen )
     17sdl::window::window( device* dev, uint16 width, uint16 height, bool fullscreen, bool msaa )
    1818        : m_device( dev ), m_width( width ), m_height( height ), m_title("Nova Engine"), m_handle( nullptr )
    1919{
     
    2727        SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
    2828
    29         //      SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 );
    30         //      SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4 );
     29        if ( msaa )
     30        {
     31                SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 );
     32                SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4 );
     33        }
    3134
    3235        SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4);
Note: See TracChangeset for help on using the changeset viewer.