Changeset 550 for trunk/src/sdl
- Timestamp:
- 03/09/17 13:33:03 (8 years ago)
- Location:
- trunk/src/sdl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sdl/sdl_window.cc
r505 r550 15 15 using namespace nv; 16 16 17 sdl::window::window( device* dev, uint16 width, uint16 height, bool fullscreen )17 sdl::window::window( device* dev, uint16 width, uint16 height, bool fullscreen, bool msaa ) 18 18 : m_device( dev ), m_width( width ), m_height( height ), m_title("Nova Engine"), m_handle( nullptr ) 19 19 { … … 27 27 SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); 28 28 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 } 31 34 32 35 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); -
trunk/src/sdl/sdl_window_manager.cc
r529 r550 27 27 } 28 28 29 window* sdl::window_manager::create_window( device* dev, uint16 width, uint16 height, bool fullscreen )29 window* sdl::window_manager::create_window( device* dev, uint16 width, uint16 height, bool fullscreen, bool msaa ) 30 30 { 31 31 if ( ! SDL_WasInit( SDL_INIT_VIDEO ) ) SDL_InitSubSystem( SDL_INIT_VIDEO ); 32 sdl::window* result = new sdl::window( dev, width, height, fullscreen );32 sdl::window* result = new sdl::window( dev, width, height, fullscreen, msaa ); 33 33 primal_window = result->get_handle(); 34 34 return result;
Note: See TracChangeset
for help on using the changeset viewer.