35 #ifndef ANATOMIST_WINDOW_GLCAPS_H
36 #define ANATOMIST_WINDOW_GLCAPS_H
39 #ifndef GL_GLEXT_PROTOTYPES
40 #define GL_GLEXT_PROTOTYPES
50 #if defined(__APPLE__)
55 # include <OpenGL/gl.h>
56 # include <OpenGL/glu.h>
58 # include <OpenGL/glext.h>
64 # include <GL/glext.h>
95 GLsizei, GLint, GLenum, GLenum,
const void* );
103 GLenum textarget, GLuint texture,
108 GLenum renderbuffertarget,
109 GLuint renderbuffer );
111 GLsizei width, GLsizei height );
114 const GLuint *renderbuffers );
119 const GLfloat *value );
121 const GLchar *name );
134 const GLchar *
const*
string,
135 const GLint *length );
145 #ifndef GL_FRAMEBUFFER
146 #define GL_FRAMEBUFFER 0x8D40
148 #ifndef GL_COLOR_ATTACHMENT0
149 #define GL_COLOR_ATTACHMENT0 0x8CE0
151 #ifndef GL_RENDERBUFFER
152 #define GL_RENDERBUFFER 0x8D41
154 #ifndef GL_DEPTH_ATTACHMENT
155 #define GL_DEPTH_ATTACHMENT 0x8D00
157 #ifndef GL_FRAMEBUFFER_COMPLETE
158 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
160 #ifndef GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
161 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
163 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
164 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
166 #ifndef GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT
167 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
169 #ifndef GL_FRAMEBUFFER_UNSUPPORTED
170 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
static void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
static bool ext_ARB_depth_texture()
static void glDeleteShader(GLuint shader)
static void glUseProgram(GLuint program)
static void glUniform1i(GLint location, GLint v0)
static bool ext_SGIX_depth_texture()
static GLint glGetUniformLocation(GLuint program, const GLchar *name)
static bool ext_ARB_shadow()
static bool ext_EXT_texture_cube_map()
static void glUniform1f(GLint location, GLfloat v0)
static void glBindRenderbuffer(GLenum target, GLuint renderbuffer)
static void glCompileShader(GLuint shader)
static GLenum glCheckFramebufferStatus(GLenum target)
static bool ext_ARB_texture_cube_map()
static void glShaderSource(GLuint shader, GLsizei count, const GLchar *const *string, const GLint *length)
static void glMultTransposeMatrixf(const GLfloat m[16])
static void glTexImage3D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *)
static bool hasFramebuffer()
static void glDeleteProgram(GLuint program)
static void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
static bool hasGlBlendEquation()
static void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
static void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
static void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
static void glAttachShader(GLuint program, GLuint shader)
static bool hasGlTexImage3D()
static bool & mustRefresh()
static void glUniform4fv(GLint location, GLsizei count, const GLfloat *value)
static void glMultiTexCoord3f(GLenum target, GLfloat s, GLfloat t, GLfloat r)
static void glClientActiveTexture(GLenum)
static bool hasMultiTexture()
static void glGenFramebuffers(GLsizei n, GLuint *ids)
static void glGetProgramiv(GLuint program, GLenum pname, GLint *params)
static void glDetachShader(GLuint program, GLuint shader)
static void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
static GLuint glCreateProgram()
static bool ext_SGIX_shadow()
static GLuint glCreateShader(GLenum type)
static void glBlendEquation(GLenum)
static void glActiveTexture(GLenum)
static void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
static void updateTextureUnits()
re-calculate number of texture units
static unsigned numTextureUnits()
static GLenum textureID(unsigned)
static void glBindFramebuffer(GLenum target, GLuint framebuffer)
static void glLinkProgram(GLuint program)