aboutsummaryrefslogtreecommitdiff
path: root/apps/openmb/renderer/GLHelpers.cpp
blob: 892fec0eec606441e137d93df2bda90570d2a506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "GLHelpers.hpp"

#include <iostream>

namespace renderer {
static void glDebugOutput ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length,
                            const GLchar* message, const void* userParam ) {
    (void)source;
    (void)type;
    (void)id;
    (void)severity;
    (void)length;
    (void)userParam;

    std::cerr << "GL Debug: " << message << std::endl;
}

bool initGL () {

    glEnable( GL_DEPTH_TEST );
    glDepthFunc( GL_LESS );

    setupDebugCallback();

    return true;
}

void setupDebugCallback () {}

}   // namespace renderer