35 #ifndef ANATOMIST_WINDOW_GLCAPS_H 36 #define ANATOMIST_WINDOW_GLCAPS_H 39 #ifndef GL_GLEXT_PROTOTYPES 40 #define GL_GLEXT_PROTOTYPES 43 #ifdef _WIN32 // TODO: remove this workaround (added by Denis for Windows) 50 #if defined(__APPLE__) 55 # include <OpenGL/gl.h> 56 # include <OpenGL/glu.h> 58 # include <OpenGL/glext.h> 64 # include <GL/glext.h> 94 static void glTexImage3D( GLenum, GLint, GLenum, GLsizei, GLsizei,
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 );
116 static void glUniform1f( GLint location, GLfloat v0 );
117 static void glUniform1i( GLint location, GLint v0 );
118 static void glUniform4fv( GLint location, GLsizei count,
119 const GLfloat *value );
121 const GLchar *name );
130 static void glGetProgramiv( GLuint program, GLenum pname, GLint *params );
131 static void glGetShaderiv( GLuint shader, GLenum pname, GLint *params );
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 glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
static void glGenFramebuffers(GLsizei n, GLuint *ids)
static void glMultiTexCoord3f(GLenum target, GLfloat s, GLfloat t, GLfloat r)
static void glDeleteShader(GLuint shader)
static bool ext_ARB_texture_cube_map()
static GLuint glCreateShader(GLenum type)
static void glBindRenderbuffer(GLenum target, GLuint renderbuffer)
static void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
static void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
static bool hasFramebuffer()
static void glDetachShader(GLuint program, GLuint shader)
static void glLinkProgram(GLuint program)
static GLenum glCheckFramebufferStatus(GLenum target)
static void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
static void glUniform4fv(GLint location, GLsizei count, const GLfloat *value)
static void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
static void glCompileShader(GLuint shader)
static bool ext_SGIX_shadow()
static bool hasGlTexImage3D()
static void glUseProgram(GLuint program)
static bool hasMultiTexture()
static void glDeleteProgram(GLuint program)
static void glGetProgramiv(GLuint program, GLenum pname, GLint *params)
static void updateTextureUnits()
re-calculate number of texture units
static void glAttachShader(GLuint program, GLuint shader)
static void glUniform1i(GLint location, GLint v0)
static GLuint glCreateProgram()
static void glUniform1f(GLint location, GLfloat v0)
static void glBindFramebuffer(GLenum target, GLuint framebuffer)
static void glBlendEquation(GLenum)
static bool ext_SGIX_depth_texture()
static bool & mustRefresh()
static void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
static bool hasGlBlendEquation()
static bool ext_ARB_shadow()
static GLenum textureID(unsigned)
static bool ext_ARB_depth_texture()
static GLint glGetUniformLocation(GLuint program, const GLchar *name)
static unsigned numTextureUnits()
static bool ext_EXT_texture_cube_map()
static void glShaderSource(GLuint shader, GLsizei count, const GLchar *const *string, const GLint *length)
static void glClientActiveTexture(GLenum)
static void glTexImage3D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *)
static void glMultTransposeMatrixf(const GLfloat m[16])
static void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
static void glActiveTexture(GLenum)