All pastes #221177 Raw Edit

Untitled

public c v1 · immutable
#221177 ·published 2006-10-25 15:13 UTC
rendered paste body
void GLSingleView::paintGL(){    glDisable(GL_DEPTH_TEST);    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);    glLoadIdentity();    glMatrixMode(GL_PROJECTION);    glLoadIdentity();    glMatrixMode(GL_MODELVIEW);    glLoadIdentity();    if (m_effectRunning && m_effectMethod) {        (this->*m_effectMethod)();    }    else        paintTexture();    if (glGetError())        std::cout << "Oops! I screwed up my OpenGL calls somewhere"                  << std::endl;}