#include <OpenGLExtensions.h>
Public Types | |
enum | rendenum { ATI, NVIDIA, MSOFTGDI, MESAGL, WIREGL, INTELSWR, GENERIC } |
Public Methods | |
void (APIENTRY *p_glLockArraysEXT)(GLint | |
void (APIENTRY *p_glUnlockArraysEXT)(void) | |
void (APIENTRY *p_glMultiDrawElementsEXT)(GLenum | |
void (APIENTRY *p_glGlobalAlphaFactorfSUN)(GLfloat) | |
void (APIENTRY *p_glPointParameterfARB)(GLenum | |
void (APIENTRY *p_glPointParameterfvARB)(GLenum | |
void (APIENTRY *p_glTexImage3D)(GLenum | |
OpenGLExtensions (void) | |
virtual | ~OpenGLExtensions (void) |
void | find_renderer (void) |
identify OpenGL accelerator/vendor. More... | |
void | find_extensions (void) |
initialize OpenGL extension state. More... | |
int | vmdQueryExtension (const char *extname) |
query OpenGL extension. More... | |
void | vmdQueryGLVersion (int *major, int *minor, int *release) |
query OpenGL version. More... | |
VMDGLXextFuncPtr | vmdGetProcAddress (const char *) |
get extension proc addr. More... | |
void | PrintExtensions (void) |
print out OpenGL extensions. More... | |
Public Attributes | |
int | hasstereo |
whether we have stereo capable buffer. More... | |
int | stereodrawforced |
must always draw in stereo, buggy driver. More... | |
int | hasmultisample |
whether we have multisample extension. More... | |
int | nummultisamples |
number of multisample samples available. More... | |
int | hasstencilbuffer |
whether display has a stencil buffer. More... | |
int | hastex2d |
whether renderer supports 2-D texturing. More... | |
int | hastex3d |
whether renderer supports 3-D texturing. More... | |
int | hasmultidrawext |
ARB/Sun GL_EXT_multi_draw. More... | |
int | hascompiledvertexarrayext |
ARB GL_EXT_compiled_vertex_array. More... | |
int | hasrescalenormalext |
ARB GL_RESCALE_NORMAL_EXT. More... | |
GLint | multitextureunits |
number of multitexture texture units. More... | |
int | hasglarbtexnonpoweroftwo |
OpenGL non-power-of-two texture ARB ext. More... | |
int | hasglpointparametersext |
glPointParameterfvARB. More... | |
int | hasglpointspritearb |
OpenGL point sprite ARB extension. More... | |
int | hasglshadinglangarb |
OpenGL Shading Language ARB extension. More... | |
int | hasglshaderobjectsarb |
OpenGL Shader Objects ARB extension. More... | |
int | hasglvertexshaderarb |
OpenGL Vertex Shader ARB extension. More... | |
int | hasglfragmentshaderarb |
OpenGL Fragment Shader ARB extension. More... | |
int | hasglgeometryshader4arb |
OpenGL Geometry Shader ARB extension. More... | |
int | hasglsampleshadingarb |
OpenGL Sample Shading ARB extension. More... | |
GLsizei | |
const GLsizei | GLenum |
const GLsizei const GLvoid | GLsizei |
GLfloat | |
GLint | |
GLenum | |
int | oglmajor |
major version of OpenGL renderer. More... | |
int | oglminor |
minor version of OpenGL renderer. More... | |
int | oglrelease |
release of OpenGL renderer. More... | |
rendenum | oglrenderer |
OpenGL renderer ID tag for important boards. More... |
Definition at line 155 of file OpenGLExtensions.h.
|
Definition at line 218 of file OpenGLExtensions.h. |
|
|
Definition at line 70 of file OpenGLExtensions.C. References NULL, and vmddlclose. |
|
initialize OpenGL extension state.
Definition at line 311 of file OpenGLExtensions.C. References find_renderer, GLenum, GLfloat, GLint, GLsizei, hascompiledvertexarrayext, hasglarbtexnonpoweroftwo, hasglfragmentshaderarb, hasglgeometryshader4arb, hasglpointparametersext, hasglpointspritearb, hasglsampleshadingarb, hasglshaderobjectsarb, hasglshadinglangarb, hasglvertexshaderarb, hasmultidrawext, hasstencilbuffer, hastex2d, hastex3d, multitextureunits, NULL, oglmajor, oglminor, oglrelease, vmdGetProcAddress, vmdQueryExtension, vmdQueryGLVersion, and void. Referenced by OpenGLRenderer::setup_initial_opengl_state. |
|
identify OpenGL accelerator/vendor.
Definition at line 283 of file OpenGLExtensions.C. References ATI, GENERIC, INTELSWR, MESAGL, MSOFTGDI, NULL, NVIDIA, oglrenderer, and WIREGL. Referenced by find_extensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
print out OpenGL extensions.
Definition at line 522 of file OpenGLExtensions.C. References multitextureunits, NULL, and nummultisamples. Referenced by OpenGLRenderer::setup_initial_opengl_state. |
|
get extension proc addr.
Definition at line 109 of file OpenGLExtensions.C. References glXGetProcAddress, NULL, vmddlopen, vmddlsym, and VMDGLXextFuncPtr. Referenced by find_extensions. |
|
query OpenGL extension.
Definition at line 75 of file OpenGLExtensions.C. Referenced by find_extensions, OpenGLDisplayDevice::open_window, and OpenGLRenderer::setup_initial_opengl_state. |
|
query OpenGL version.
Definition at line 225 of file OpenGLExtensions.C. References NULL. Referenced by find_extensions. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by find_extensions. |
|
Definition at line 189 of file OpenGLExtensions.h. |
|
Definition at line 185 of file OpenGLExtensions.h. Referenced by find_extensions. |
|
Definition at line 187 of file OpenGLExtensions.h. Referenced by find_extensions. |
|
Definition at line 189 of file OpenGLExtensions.h. Referenced by find_extensions. |
|
Definition at line 185 of file OpenGLExtensions.h. |
|
Definition at line 189 of file OpenGLExtensions.h. Referenced by find_extensions. |
|
ARB GL_EXT_compiled_vertex_array.
Definition at line 169 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLExtensions. |
|
OpenGL non-power-of-two texture ARB ext.
Definition at line 172 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLExtensions. |
|
OpenGL Fragment Shader ARB extension.
Definition at line 178 of file OpenGLExtensions.h. Referenced by find_extensions, OpenGLExtensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
OpenGL Geometry Shader ARB extension.
Definition at line 179 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLExtensions. |
|
glPointParameterfvARB.
Definition at line 173 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLExtensions. |
|
OpenGL point sprite ARB extension.
Definition at line 174 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLExtensions. |
|
OpenGL Sample Shading ARB extension.
Definition at line 180 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLExtensions. |
|
OpenGL Shader Objects ARB extension.
Definition at line 176 of file OpenGLExtensions.h. Referenced by find_extensions, OpenGLExtensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
OpenGL Shading Language ARB extension.
Definition at line 175 of file OpenGLExtensions.h. Referenced by find_extensions, OpenGLExtensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
OpenGL Vertex Shader ARB extension.
Definition at line 177 of file OpenGLExtensions.h. Referenced by find_extensions, OpenGLExtensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
ARB/Sun GL_EXT_multi_draw.
Definition at line 168 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLExtensions. |
|
whether we have multisample extension.
Definition at line 163 of file OpenGLExtensions.h. Referenced by OpenGLRenderer::aa_off, OpenGLRenderer::aa_on, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, OpenGLDisplayDevice::open_window, and OpenGLExtensions. |
|
ARB GL_RESCALE_NORMAL_EXT.
Definition at line 170 of file OpenGLExtensions.h. Referenced by OpenGLExtensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
whether display has a stencil buffer.
Definition at line 165 of file OpenGLExtensions.h. Referenced by OpenGLRenderer::enable_stencil_stereo, find_extensions, and OpenGLExtensions. |
|
whether we have stereo capable buffer.
Definition at line 161 of file OpenGLExtensions.h. Referenced by OpenGLRenderer::clear, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, FreeVRDisplayDevice::FreeVRDisplayDevice, OpenGLRenderer::left, OpenGLDisplayDevice::open_window, OpenGLRenderer::right, and OpenGLRenderer::setup_initial_opengl_state. |
|
whether renderer supports 2-D texturing.
Definition at line 166 of file OpenGLExtensions.h. Referenced by find_extensions, OpenGLExtensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
whether renderer supports 3-D texturing.
Definition at line 167 of file OpenGLExtensions.h. Referenced by OpenGLRenderer::build3Dmipmaps, find_extensions, OpenGLExtensions, OpenGLRenderer::require_volume_texture, and OpenGLRenderer::setup_initial_opengl_state. |
|
number of multitexture texture units.
Definition at line 171 of file OpenGLExtensions.h. Referenced by find_extensions, OpenGLExtensions, PrintExtensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
number of multisample samples available.
Definition at line 164 of file OpenGLExtensions.h. Referenced by OpenGLDisplayDevice::open_window, and PrintExtensions. |
|
major version of OpenGL renderer.
Definition at line 221 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
minor version of OpenGL renderer.
Definition at line 222 of file OpenGLExtensions.h. Referenced by find_extensions, and OpenGLRenderer::setup_initial_opengl_state. |
|
release of OpenGL renderer.
Definition at line 223 of file OpenGLExtensions.h. Referenced by find_extensions. |
|
OpenGL renderer ID tag for important boards.
Definition at line 224 of file OpenGLExtensions.h. Referenced by find_renderer, and OpenGLRenderer::setup_initial_opengl_state. |
|
must always draw in stereo, buggy driver.
Definition at line 162 of file OpenGLExtensions.h. Referenced by OpenGLRenderer::clear, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLRenderer::forced_stereo_draws, FreeVRDisplayDevice::FreeVRDisplayDevice, OpenGLRenderer::left, OpenGLDisplayDevice::open_window, OpenGLRenderer::right, and OpenGLRenderer::setup_initial_opengl_state. |