qe_ogl.h
C header source for Blob Function (blobs1), 55 lines. Raw file
#ifndef _MLGL_H
#define _MLGL_H
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
#ifdef __cplusplus
extern "C" {
#endif
//
// Globals
//
extern const char *gl_error;
extern HWND gl_hWnd;
extern HDC gl_dc;
extern HGLRC gl_rc;
extern GLsizei gl_width, gl_height;
extern char gl_vendor[128], gl_renderer[128], gl_version[128], *gl_extensions;
//
// Implementation
//
BOOL GL_InitGL (HWND hWnd, HDC dc);
void GL_DoneGL ();
void GL_Initialise (GLsizei width, GLsizei height);
void GL_GetDriverInfo (void);
BOOL GL_ChangeResolution (unsigned width, unsigned height, unsigned bits);
void GL_RestoreResolution (void);
////// Opengl Extension function pointers
extern void (APIENTRY *glLockArraysEXT)(int,int);
extern void (APIENTRY *glUnlockArraysEXT)();
#ifdef __cplusplus
};
#endif
#endif // _MLGL_H