fix compile errors
[wdl/wdl-ol.git] / WDL / lice / lice_gl_ctx.h
blob2915a062aff3208bec0b66bed31c3361b5cb19ad
1 #ifndef _GL_CTX_
2 #define _GL_CTX_
4 #include "lice.h"
6 #define GLEW_STATIC
7 #include "glew/include/gl/glew.h"
8 #include "glew/include/gl/wglew.h"
9 #include "glew/include/gl/wglext.h"
11 // GL context functions
12 // opening and managing GL context is handled behind the scenes
15 bool LICE_GL_IsValid(); // GL context is initialized (will be lazy initialized on first call) and valid
17 HWND LICE_GL_GetWindow(); // Get the window that owns the GL context (one per process)
19 void LICE_GL_CloseCtx(); // Something failed, turn off GL context forever so we don't keep failing
21 GLUnurbsObj* LICE_GL_GetNurbsObj(int linetol=8); // linetol = maximum number of straight-line pixels
23 // facility for associating a glyph with a texture
24 GLuint LICE_GL_GetTexFromGlyph(const unsigned char* glyph, int glyph_w, int glyph_h);
25 void LICE_GL_ClearTex();
27 #endif