Ignore:
Timestamp:
05/28/13 16:48:29 (12 years ago)
Author:
epyon
Message:
  • context bugfixes, force apply state at creation and apply render state
  • window creates context
  • index buffer
  • vertex arrays (simulation of GL 3 functionality)
  • bugfixes
File:
1 edited

Legend:

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

    r38 r44  
    2929        NV_LOG( LOG_INFO, "OpenGL Version      : " << glGetString(GL_VERSION) );
    3030        NV_LOG( LOG_INFO, "OpenGL GLSL Version : " << glGetString(GL_SHADING_LANGUAGE_VERSION) );
     31
     32        m_context = new gl_context();
     33        m_context->set_viewport( nv::ivec4( 0, 0, m_width, m_height ) );
    3134}
    3235
     
    5154        m_title = title;
    5255}
     56
     57gl_window::~gl_window()
     58{
     59        delete m_context;
     60}
Note: See TracChangeset for help on using the changeset viewer.