add oversampler
This commit is contained in:
27
oversampling/WDL/lice/lice_gl_ctx.h
Normal file
27
oversampling/WDL/lice/lice_gl_ctx.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef _GL_CTX_
|
||||
#define _GL_CTX_
|
||||
|
||||
#include "lice.h"
|
||||
|
||||
#define GLEW_STATIC
|
||||
#include "glew/include/gl/glew.h"
|
||||
#include "glew/include/gl/wglew.h"
|
||||
#include "glew/include/gl/wglext.h"
|
||||
|
||||
// GL context functions
|
||||
// opening and managing GL context is handled behind the scenes
|
||||
|
||||
|
||||
bool LICE_GL_IsValid(); // GL context is initialized (will be lazy initialized on first call) and valid
|
||||
|
||||
HWND LICE_GL_GetWindow(); // Get the window that owns the GL context (one per process)
|
||||
|
||||
void LICE_GL_CloseCtx(); // Something failed, turn off GL context forever so we don't keep failing
|
||||
|
||||
GLUnurbsObj* LICE_GL_GetNurbsObj(int linetol=8); // linetol = maximum number of straight-line pixels
|
||||
|
||||
// facility for associating a glyph with a texture
|
||||
GLuint LICE_GL_GetTexFromGlyph(const unsigned char* glyph, int glyph_w, int glyph_h);
|
||||
void LICE_GL_ClearTex();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user