Changeset 550 for trunk/src


Ignore:
Timestamp:
03/09/17 13:33:03 (8 years ago)
Author:
epyon
Message:
  • ECS and windowing updates
Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/texture_font.cc

    r487 r550  
    111111        else
    112112        {
    113                 flags |= FT_LOAD_FORCE_AUTOHINT;
     113                //flags |= FT_LOAD_FORCE_AUTOHINT;
    114114        }
    115115
     
    122122                        FT_Library_SetLcdFilterWeights( reinterpret_cast<FT_Library>( m_rlibrary ), m_lcd_weights );
    123123                }
     124
    124125        }
    125126
  • trunk/src/gl/gl_context.cc

    r543 r550  
    4747                        static_cast<GLint>( vba.components ),
    4848                        nv::datatype_to_gl_enum( vba.dtype ),
    49                         GL_FALSE,
     49                        vba.interpolate ? GL_TRUE : GL_FALSE,
    5050                        static_cast<GLsizei>( vba.stride ),
    5151                        reinterpret_cast<void*>( vba.offset )
     
    693693        if ( m_render_state.multisample != multisample )
    694694        {
    695                 glDepthMask( multisample );
     695                enable( GL_MULTISAMPLE, multisample );
    696696                m_render_state.multisample = multisample;
    697697        }
     
    891891        m_active_slot = texture_slot( -1 );
    892892        force_apply_render_state( m_render_state );
     893        glHint( GL_POLYGON_SMOOTH_HINT, GL_NICEST );
    893894}
    894895
  • 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);
  • trunk/src/sdl/sdl_window_manager.cc

    r529 r550  
    2727}
    2828
    29 window* sdl::window_manager::create_window( device* dev, uint16 width, uint16 height, bool fullscreen )
     29window* sdl::window_manager::create_window( device* dev, uint16 width, uint16 height, bool fullscreen, bool msaa )
    3030{
    3131        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 );
    3333        primal_window = result->get_handle();
    3434        return result;
Note: See TracChangeset for help on using the changeset viewer.