Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

OpenGLRenderer Class Reference

DisplayDevice subclass implementing the low-level OpenGL rendering functions used by several derived DisplayDevice subclasses. This class renders drawing commands into a window provided by one of the further subclasses. More...

#include <OpenGLRenderer.h>

Inheritance diagram for OpenGLRenderer:

DisplayDevice CaveDisplayDevice FltkOpenGLDisplayDevice FreeVRDisplayDevice OpenGLDisplayDevice OpenGLPbufferDisplayDevice VRJugglerDisplayDevice List of all members.

Public Methods

void setup_initial_opengl_state (void)
 initialize VMD's OpenGL state. More...

 OpenGLRenderer (const char *)
 constructor/destructor. More...

virtual ~OpenGLRenderer (void)
virtual int supports_gui ()
 Does this display device support GUI's? The default stub display does not. More...

virtual void find_3D_from_2D (const float *A3D, const float *B2D, float *B3D)
virtual void set_background (const float *)
 set bg color. More...

virtual void set_backgradient (const float *, const float *)
 set bg grad. More...

virtual void enable_stencil_stereo (int newMode)
 turn on stencil stereo. More...

virtual void disable_stencil_stereo (void)
 turn off stencil stereo. More...

virtual void left (void)
 ready to draw left eye. More...

virtual void right (void)
 ready to draw right eye. More...

virtual void normal (void)
 ready to draw non-stereo. More...

virtual void set_persp (DisplayEye=NOSTEREO)
 set view configuration. More...

virtual int prepare3D (int do_clear=TRUE)
 ready to draw 3D. More...

virtual int prepareOpaque ()
 draw opaque objects. More...

virtual int prepareTrans ()
 draw transparent objects. More...

virtual void clear (void)
 erase the device. More...

virtual void render (const VMDDisplayList *)
 process draw cmd list. More...

virtual void render_done ()
 post-rendering ops. More...

void free_opengl_ctx ()
 free gl context rsrcs. More...

virtual int forced_stereo_draws (void)
 whether we must force mono draws in stereo or not. More...

virtual void set_stereo_mode (int=0)
 set stereo mode, 0==off. More...

virtual void set_cache_mode (int)
 set caching mode, 0==off. More...

virtual void set_render_mode (int)
 set render mode, 0==norm. More...

virtual void loadmatrix (const Matrix4 &)
 virtual routines to affect the devices transformation matrix. More...

virtual void multmatrix (const Matrix4 &)
 virtual routines to affect the devices transformation matrix. More...

virtual void abs_screen_loc_3D (float *, float *)
 return normalized absolut 3D screen coordinates, given 3D world coordinates. More...

virtual void abs_screen_loc_2D (float *, float *)
 return absolute 2D screen coordinates, given 2D world coordinates. More...

virtual void aa_on (void)
 functions to control depth cueing, culling, and antialiasing. More...

virtual void aa_off (void)
 functions to control depth cueing, culling, and antialiasing. More...

virtual void cueing_on (void)
 functions to control depth cueing, culling, and antialiasing. More...

virtual void cueing_off (void)
 functions to control depth cueing, culling, and antialiasing. More...

virtual void culling_on (void)
 functions to control depth cueing, culling, and antialiasing. More...

virtual void culling_off (void)
 functions to control depth cueing, culling, and antialiasing. More...


Protected Methods

void update_lists (void)
 Update the OpenGL sphere/cylinder/etc display lists. More...

void update_shader_uniforms (void *, int forceupdate)
void set_line_width (int)
 routines to perform various OGL-specific graphics operations. More...

void set_line_style (int)
 routines to perform various OGL-specific graphics operations. More...

void set_sphere_res (int)
 routines to perform various OGL-specific graphics operations. More...

void set_sphere_mode (int)
 routines to perform various OGL-specific graphics operations. More...

void cylinder (float *, float *, int, float, float)
 routines to perform various OGL-specific graphics operations. More...

void require_volume_texture (unsigned long ID, unsigned xsize, unsigned ysize, unsigned zsize, unsigned char *texmap)
 routines to perform various OGL-specific graphics operations. More...

int build3Dmipmaps (int, int, int, unsigned char *tx)
 routines to perform various OGL-specific graphics operations. More...

void draw_background_gradient (void)
 routines to perform various OGL-specific graphics operations. More...

virtual int do_define_light (int n, float *color, float *position)
 routines to deal with light sources at device level, return success/fail. More...

virtual int do_activate_light (int n, int turnon)
 routines to deal with light sources at device level, return success/fail. More...


Protected Attributes

int ogl_cacheenabled
 flag to enable display list caching. More...

int ogl_cachedebug
 flag to enable printing of debug messages. More...

GLint ogl_cachelistbase
 base index for display list cache. More...

int dpl_initialized
 have we initialized display lists? More...

GLuint font1pxListBase
 1-pixel wide non-AA font display list. More...

GLuint fontNpxListBase
 N-pixel wide antialiased font display list. More...

OpenGLExtensionsext
 OpenGL Extensions class. More...

int simplegraphics
 Force use of simplest OpenGL primitives. More...

int wiregl
 Using Stanford's WireGL library. More...

int immersadeskflip
 Immersadesk right-eye X-axis reflection mode. More...

int shearstereo
 Use shear matrix stereo rather than eye rotation. More...

GLUquadricObj * pointsQuadric
 quadric objects and display lists for spheres, cylinders, and disks. More...

GLUquadricObj * objQuadric
 quadric objects and display lists for spheres, cylinders, and disks. More...

ResizeArray< GLuint > solidSphereLists
 one sphere display list for each supported resolution. More...

ResizeArray< GLuint > pointSphereLists
 quadric objects and display lists for spheres, cylinders, and disks. More...

GLuint SphereList
 the current sphere display list. More...

OpenGLCache displaylistcache
 cached copies of most recently used OpenGL state, materials, etc. More...

OpenGLCache texturecache
 cached copies of most recently used OpenGL state, materials, etc. More...

int oglmaterialindex
 cached copies of most recently used OpenGL state, materials, etc. More...

float oglopacity
 cached copies of most recently used OpenGL state, materials, etc. More...

float oglambient
 cached copies of most recently used OpenGL state, materials, etc. More...

float oglspecular
 cached copies of most recently used OpenGL state, materials, etc. More...

float ogldiffuse
 cached copies of most recently used OpenGL state, materials, etc. More...

float oglshininess
 cached copies of most recently used OpenGL state, materials, etc. More...

float ogloutline
 cached copies of most recently used OpenGL state, materials, etc. More...

float ogloutlinewidth
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogltransmode
 cached copies of most recently used OpenGL state, materials, etc. More...

GLfloat ogl_pmatrix [16]
 cached copies of most recently used OpenGL state, materials, etc. More...

GLfloat ogl_mvmatrix [16]
 cached copies of most recently used OpenGL state, materials, etc. More...

Matrix4 ogl_textMat
 cached copies of most recently used OpenGL state, materials, etc. More...

GLint ogl_viewport [4]
 cached copies of most recently used OpenGL state, materials, etc. More...

GLint ogl_fogmode
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_lightingenabled
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_useblendedtrans
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_useglslshader
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_glslserial
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_glsltoggle
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_glslmaterialindex
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_glslprojectionmode
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_glsltexturemode
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_transpass
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_rendstateserial
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_clipmode [VMD_MAX_CLIP_PLANE]
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_lightstate [DISP_LIGHTS]
 cached copies of most recently used OpenGL state, materials, etc. More...

GLfloat ogl_lightcolor [DISP_LIGHTS][4]
 cached copies of most recently used OpenGL state, materials, etc. More...

GLfloat ogl_lightpos [DISP_LIGHTS][4]
 cached copies of most recently used OpenGL state, materials, etc. More...

GLfloat ogl_backgradient [2][4]
 cached copies of most recently used OpenGL state, materials, etc. More...

int ogl_acrobat3dcapture
 cached copies of most recently used OpenGL state, materials, etc. More...

int hastex2d
 2D texturing features. More...

GLint max2DtexX
 2D texturing features. More...

GLint max2DtexY
 2D texturing features. More...

GLint max2DtexSize
 2D texturing features. More...

int hastex3d
 3D texturing features. More...

GLint max3DtexX
 3D texturing features. More...

GLint max3DtexY
 3D texturing features. More...

GLint max3DtexZ
 3D texturing features. More...

GLint max3DtexSize
 3D texturing features. More...


Detailed Description

DisplayDevice subclass implementing the low-level OpenGL rendering functions used by several derived DisplayDevice subclasses. This class renders drawing commands into a window provided by one of the further subclasses.

Definition at line 109 of file OpenGLRenderer.h.


Constructor & Destructor Documentation

OpenGLRenderer::OpenGLRenderer const char *   
 

constructor/destructor.

Definition at line 649 of file OpenGLRenderer.C.

References dpl_initialized, ext, NULL, objQuadric, and pointsQuadric.

OpenGLRenderer::~OpenGLRenderer void    [virtual]
 

Definition at line 666 of file OpenGLRenderer.C.

References ext, NULL, objQuadric, and pointsQuadric.


Member Function Documentation

void OpenGLRenderer::aa_off void    [virtual]
 

functions to control depth cueing, culling, and antialiasing.

Reimplemented from DisplayDevice.

Definition at line 1048 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, DisplayDevice::aaAvailable, DisplayDevice::aaEnabled, ext, and OpenGLExtensions::hasmultisample.

Referenced by aa_on, and enable_stencil_stereo.

void OpenGLRenderer::aa_on void    [virtual]
 

functions to control depth cueing, culling, and antialiasing.

Reimplemented from DisplayDevice.

Definition at line 1022 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, aa_off, DisplayDevice::aaAvailable, DisplayDevice::aaEnabled, ext, OpenGLExtensions::hasmultisample, DisplayDevice::inStereo, OPENGL_STEREO_STENCIL_CHECKERBOARD, OPENGL_STEREO_STENCIL_COLUMNS, and OPENGL_STEREO_STENCIL_ROWS.

Referenced by disable_stencil_stereo, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, and OpenGLDisplayDevice::init.

void OpenGLRenderer::abs_screen_loc_2D float *   ,
float *   
[virtual]
 

return absolute 2D screen coordinates, given 2D world coordinates.

Reimplemented from DisplayDevice.

Definition at line 953 of file OpenGLRenderer.C.

References abs_screen_loc_3D.

void OpenGLRenderer::abs_screen_loc_3D float *   ,
float *   
[virtual]
 

return normalized absolut 3D screen coordinates, given 3D world coordinates.

Reimplemented from DisplayDevice.

Definition at line 930 of file OpenGLRenderer.C.

References ogl_mvmatrix, ogl_pmatrix, ogl_viewport, DisplayDevice::xOrig, and DisplayDevice::yOrig.

Referenced by abs_screen_loc_2D.

int OpenGLRenderer::build3Dmipmaps int   ,
int   ,
int   ,
unsigned char *    tx
[protected]
 

routines to perform various OGL-specific graphics operations.

Definition at line 3522 of file OpenGLRenderer.C.

References ext, GLTEXIMAGE3D, OpenGLExtensions::hastex3d, max3DtexX, max3DtexY, max3DtexZ, NULL, DisplayDevice::x, and DisplayDevice::y.

Referenced by require_volume_texture.

void OpenGLRenderer::clear void    [virtual]
 

erase the device.

Reimplemented from DisplayDevice.

Definition at line 1679 of file OpenGLRenderer.C.

References ext, OpenGLExtensions::hasstereo, OPENGL_STEREO_ABOVEBELOW, OPENGL_STEREO_ANAGLYPH, OPENGL_STEREO_DTISIDE, OPENGL_STEREO_QUADBUFFER, OPENGL_STEREO_SIDE, OpenGLExtensions::stereodrawforced, DisplayDevice::xSize, and DisplayDevice::ySize.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, prepare3D, set_render_mode, and set_stereo_mode.

void OpenGLRenderer::cueing_off void    [virtual]
 

functions to control depth cueing, culling, and antialiasing.

Reimplemented from DisplayDevice.

Definition at line 1074 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, DisplayDevice::cueingAvailable, and DisplayDevice::cueingEnabled.

void OpenGLRenderer::cueing_on void    [virtual]
 

functions to control depth cueing, culling, and antialiasing.

Reimplemented from DisplayDevice.

Definition at line 1065 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, DisplayDevice::cueingAvailable, and DisplayDevice::cueingEnabled.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, and OpenGLDisplayDevice::init.

void OpenGLRenderer::culling_off void    [virtual]
 

functions to control depth cueing, culling, and antialiasing.

Reimplemented from DisplayDevice.

Definition at line 1095 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, DisplayDevice::cullingAvailable, and DisplayDevice::cullingEnabled.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, and OpenGLDisplayDevice::init.

void OpenGLRenderer::culling_on void    [virtual]
 

functions to control depth cueing, culling, and antialiasing.

Reimplemented from DisplayDevice.

Definition at line 1083 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, DisplayDevice::cullingAvailable, and DisplayDevice::cullingEnabled.

void OpenGLRenderer::cylinder float *   ,
float *   ,
int   ,
float   ,
float   
[protected]
 

routines to perform various OGL-specific graphics operations.

Definition at line 763 of file OpenGLRenderer.C.

References glPopMatrix, objQuadric, and VMD_PI.

Referenced by render.

void OpenGLRenderer::disable_stencil_stereo void    [virtual]
 

turn off stencil stereo.

Definition at line 1302 of file OpenGLRenderer.C.

References aa_on, DisplayDevice::inStereo, and OPENGL_STEREO_OFF.

Referenced by set_stereo_mode.

int OpenGLRenderer::do_activate_light int    n,
int    turnon
[protected, virtual]
 

routines to deal with light sources at device level, return success/fail.

Reimplemented from DisplayDevice.

Definition at line 896 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, ogl_lightstate, and ogl_rendstateserial.

int OpenGLRenderer::do_define_light int    n,
float *    color,
float *    position
[protected, virtual]
 

routines to deal with light sources at device level, return success/fail.

Reimplemented from DisplayDevice.

Definition at line 873 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, ogl_lightcolor, ogl_lightpos, ogl_rendstateserial, and vec_normalize.

void OpenGLRenderer::draw_background_gradient void    [protected]
 

routines to perform various OGL-specific graphics operations.

Definition at line 1707 of file OpenGLRenderer.C.

References DisplayDevice::backgroundmode, glPopMatrix, ogl_backgradient, ogl_clipmode, ogl_lightingenabled, ogl_useglslshader, and VMD_MAX_CLIP_PLANE.

Referenced by left, normal, and right.

void OpenGLRenderer::enable_stencil_stereo int    newMode [virtual]
 

turn on stencil stereo.

Definition at line 1227 of file OpenGLRenderer.C.

References aa_off, DisplayDevice::aaEnabled, DisplayDevice::aaPrevious, ext, glPopMatrix, OpenGLExtensions::hasstencilbuffer, OPENGL_STEREO_OFF, OPENGL_STEREO_STENCIL_CHECKERBOARD, OPENGL_STEREO_STENCIL_COLUMNS, OPENGL_STEREO_STENCIL_ROWS, set_stereo_mode, DisplayDevice::xSize, and DisplayDevice::ySize.

Referenced by OpenGLPbufferDisplayDevice::reshape, OpenGLDisplayDevice::reshape, FltkOpenGLDisplayDevice::reshape, and set_stereo_mode.

void OpenGLRenderer::find_3D_from_2D const float *    A3D,
const float *    B2D,
float *    B3D
[virtual]
 

Reimplemented from DisplayDevice.

Definition at line 968 of file OpenGLRenderer.C.

References ogl_mvmatrix, ogl_pmatrix, ogl_viewport, DisplayDevice::xSize, and DisplayDevice::ySize.

virtual int OpenGLRenderer::forced_stereo_draws void    [inline, virtual]
 

whether we must force mono draws in stereo or not.

Reimplemented from DisplayDevice.

Definition at line 295 of file OpenGLRenderer.h.

References OpenGLExtensions::stereodrawforced.

void OpenGLRenderer::free_opengl_ctx  
 

free gl context rsrcs.

Definition at line 683 of file OpenGLRenderer.C.

References OpenGLCache::deleteUnused, displaylistcache, font1pxListBase, fontNpxListBase, GLCACHE_FAIL, OpenGLCache::markUnused, MAX_SPHERE_RES, MIN_SPHERE_RES, pointSphereLists, solidSphereLists, and texturecache.

Referenced by FltkOpenGLDisplayDevice::~FltkOpenGLDisplayDevice, OpenGLDisplayDevice::~OpenGLDisplayDevice, and OpenGLPbufferDisplayDevice::~OpenGLPbufferDisplayDevice.

void OpenGLRenderer::left void    [virtual]
 

ready to draw left eye.

Reimplemented from DisplayDevice.

Definition at line 1318 of file OpenGLRenderer.C.

References DisplayDevice::DisplayEye, draw_background_gradient, ext, OpenGLExtensions::hasstereo, DisplayDevice::LEFTEYE, normal, OPENGL_STEREO_ABOVEBELOW, OPENGL_STEREO_ANAGLYPH, OPENGL_STEREO_DTISIDE, OPENGL_STEREO_LEFT, OPENGL_STEREO_QUADBUFFER, OPENGL_STEREO_RIGHT, OPENGL_STEREO_SIDE, OPENGL_STEREO_STENCIL_CHECKERBOARD, OPENGL_STEREO_STENCIL_COLUMNS, OPENGL_STEREO_STENCIL_ROWS, DisplayDevice::RIGHTEYE, set_persp, OpenGLExtensions::stereodrawforced, DisplayDevice::xSize, and DisplayDevice::ySize.

void OpenGLRenderer::loadmatrix const Matrix4   [virtual]
 

virtual routines to affect the devices transformation matrix.

Reimplemented from DisplayDevice.

Definition at line 910 of file OpenGLRenderer.C.

References Matrix4::mat.

void OpenGLRenderer::multmatrix const Matrix4   [virtual]
 

virtual routines to affect the devices transformation matrix.

Reimplemented from DisplayDevice.

Definition at line 916 of file OpenGLRenderer.C.

References Matrix4::mat.

Referenced by VRJugglerDisplayDevice::render, render, FreeVRDisplayDevice::render, and CaveDisplayDevice::render.

void OpenGLRenderer::normal void    [virtual]
 

ready to draw non-stereo.

Reimplemented from DisplayDevice.

Reimplemented in CaveDisplayDevice.

Definition at line 1218 of file OpenGLRenderer.C.

References draw_background_gradient, set_persp, DisplayDevice::xSize, and DisplayDevice::ySize.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, left, right, set_render_mode, and set_stereo_mode.

int OpenGLRenderer::prepare3D int    do_clear = TRUE [virtual]
 

ready to draw 3D.

Reimplemented from DisplayDevice.

Definition at line 1636 of file OpenGLRenderer.C.

References clear, displaylistcache, OpenGLCache::markUnused, oglmaterialindex, and texturecache.

int OpenGLRenderer::prepareOpaque   [virtual]
 

draw opaque objects.

Reimplemented from DisplayDevice.

Definition at line 1658 of file OpenGLRenderer.C.

References ogl_transpass.

int OpenGLRenderer::prepareTrans   [virtual]
 

draw transparent objects.

Reimplemented from DisplayDevice.

Definition at line 1668 of file OpenGLRenderer.C.

References ogl_transpass.

void OpenGLRenderer::render const VMDDisplayList   [virtual]
 

process draw cmd list.

Reimplemented from DisplayDevice.

Reimplemented in CaveDisplayDevice.

Definition at line 1783 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, VMDDisplayList::ambient, DisplayDevice::Aspect, VMDDisplayList::cacheskip, VMDClipPlane::center, VMDDisplayList::clipplanes, DisplayDevice::colorData, DisplayDevice::CUE_EXP, DisplayDevice::CUE_EXP2, DisplayDevice::CUE_LINEAR, cylinder, cylinder_full, DCOLORINDEX, DCONE, DCYLINDER, VMDDisplayList::diffuse, DISP_LIGHTS, displaylistcache, DLASTCOMMAND, DLINE, DLINEARRAY, DLINESTYLE, DLINEWIDTH, DLITPOINTARRAY, DMATERIALOFF, DMATERIALON, DispCmdTriStrips::doublesided, DPICKPOINT, DPICKPOINT_ARRAY, DPOINT, DPOINTARRAY, DPOLYLINEARRAY, DSPHERE, DSPHEREARRAY, DSPHERERES, DSPHERETYPE, DSQUARE, DTEXT, DTEXTOFFSET, DTEXTSIZE, DTRIANGLE, DTRIMESH_C3F_N3F_V3F, DTRIMESH_C4F_N3F_V3F, DTRIMESH_C4U_N3B_V3F, DTRIMESH_C4U_N3F_V3F, DTRISTRIP, DVOLSLICE, DVOLTEXOFF, DVOLTEXON, DVOLUMETEXTURE, DWIREMESH, OpenGLCache::encache, ext, DisplayDevice::farClip, DisplayDevice::find_pbc_images, VMDDisplayList::first, font1pxListBase, fontNpxListBase, DisplayDevice::get_cue_density, DisplayDevice::get_cue_end, DisplayDevice::get_cue_start, DispCmdWireMesh::getpointers, DispCmdTriStrips::getpointers, DispCmdTriMesh::getpointers, DispCmdSphereArray::getpointers, DispCmdLitPointArray::getpointers, DispCmdPointArray::getpointers, GLCACHE_FAIL, GLGETUNIFORMLOCATIONARB, GLLOCKARRAYSEXT, GLMULTIDRAWELEMENTSEXT, GLPOINTPARAMETERFVARB, glPopMatrix, GLUNIFORM1FVARB, GLUNIFORM1IARB, GLUNIFORM4FVARB, GLUNLOCKARRAYSEXT, OpenGLExtensions::hascompiledvertexarrayext, OpenGLExtensions::hasglpointparametersext, OpenGLExtensions::hasglpointspritearb, OpenGLExtensions::hasmultidrawext, OpenGLExtensions::hastex3d, DispCmdVolumeTexture::ID, OpenGLCache::markUsed, VMDDisplayList::mat, VMDDisplayList::materialtag, VMDClipPlane::mode, Matrix4::multmatrix, multmatrix, Matrix4::multpoint4d, DisplayDevice::nearClip, VMDDisplayList::next, DispCmdTriangle::norm1, DispCmdTriangle::norm2, DispCmdTriangle::norm3, DispCmdVolSlice::normal, VMDClipPlane::normal, DispCmdSquare::norml, NULL, ResizeArray::num, DisplayDevice::NUM_CUE_MODES, DispCmdTriMesh::numfacets, DispCmdWireMesh::numlines, DispCmdLitPointArray::numpoints, DispCmdPointArray::numpoints, DispCmdSphereArray::numspheres, DispCmdTriStrips::numstrips, DispCmdWireMesh::numverts, DispCmdTriStrips::numverts, DispCmdTriMesh::numverts, ogl_acrobat3dcapture, ogl_cacheenabled, ogl_clipmode, ogl_fogmode, ogl_glslmaterialindex, ogl_glsltexturemode, ogl_glsltoggle, ogl_lightcolor, ogl_lightingenabled, ogl_textMat, ogl_useglslshader, oglambient, ogldiffuse, OGLERR, oglmaterialindex, oglopacity, ogloutline, ogloutlinewidth, oglshininess, oglspecular, ogltransmode, VMDDisplayList::opacity, VMDDisplayList::outline, VMDDisplayList::outlinewidth, DisplayDevice::PERSPECTIVE, DispCmdTriMesh::pervertexcolors, DispCmdCone::pos1, DispCmdSquare::pos1, DispCmdTriangle::pos1, DispCmdCone::pos2, DispCmdSquare::pos2, DispCmdTriangle::pos2, DispCmdSquare::pos3, DispCmdTriangle::pos3, DispCmdSquare::pos4, DisplayDevice::projection, DispCmdCone::radius, DispCmdCone::radius2, require_volume_texture, DispCmdCone::res, VMDDisplayList::serial, set_line_style, set_line_width, set_sphere_mode, set_sphere_res, VMDDisplayList::shininess, simplegraphics, DispCmdLitPointArray::size, DispCmdPointArray::size, VMDDisplayList::specular, SphereList, DispCmdSphereArray::sphereres, DispCmdVolumeTexture::texmap, DispCmdVolSlice::texmode, VMDDisplayList::transmode, update_shader_uniforms, DispCmdVolSlice::v, DispCmdVolumeTexture::v0, DispCmdVolumeTexture::v1, DispCmdVolumeTexture::v2, DispCmdVolumeTexture::v3, vec_add, vec_scale, VMD_MAX_CLIP_PLANE, DispCmdVolumeTexture::xsize, DispCmdVolumeTexture::ysize, and DispCmdVolumeTexture::zsize.

Referenced by VRJugglerDisplayDevice::render, FreeVRDisplayDevice::render, and CaveDisplayDevice::render.

void OpenGLRenderer::render_done   [virtual]
 

post-rendering ops.

Reimplemented from DisplayDevice.

Definition at line 3473 of file OpenGLRenderer.C.

References OpenGLCache::deleteUnused, displaylistcache, GLCACHE_FAIL, ogl_glsltoggle, and texturecache.

void OpenGLRenderer::require_volume_texture unsigned long    ID,
unsigned    xsize,
unsigned    ysize,
unsigned    zsize,
unsigned char *    texmap
[protected]
 

routines to perform various OGL-specific graphics operations.

Definition at line 3488 of file OpenGLRenderer.C.

References build3Dmipmaps, OpenGLCache::encache, ext, OpenGLExtensions::hastex3d, OpenGLCache::markUsed, and texturecache.

Referenced by render.

void OpenGLRenderer::right void    [virtual]
 

ready to draw right eye.

Reimplemented from DisplayDevice.

Definition at line 1401 of file OpenGLRenderer.C.

References DisplayDevice::DisplayEye, draw_background_gradient, ext, OpenGLExtensions::hasstereo, DisplayDevice::LEFTEYE, normal, OPENGL_STEREO_ABOVEBELOW, OPENGL_STEREO_ANAGLYPH, OPENGL_STEREO_DTISIDE, OPENGL_STEREO_LEFT, OPENGL_STEREO_QUADBUFFER, OPENGL_STEREO_RIGHT, OPENGL_STEREO_SIDE, OPENGL_STEREO_STENCIL_CHECKERBOARD, OPENGL_STEREO_STENCIL_COLUMNS, OPENGL_STEREO_STENCIL_ROWS, DisplayDevice::RIGHTEYE, set_persp, OpenGLExtensions::stereodrawforced, DisplayDevice::xSize, and DisplayDevice::ySize.

void OpenGLRenderer::set_backgradient const float *   ,
const float *   
[virtual]
 

set bg grad.

Reimplemented from DisplayDevice.

Definition at line 1127 of file OpenGLRenderer.C.

References ogl_backgradient.

void OpenGLRenderer::set_background const float *    [virtual]
 

set bg color.

Reimplemented from DisplayDevice.

Definition at line 1106 of file OpenGLRenderer.C.

void OpenGLRenderer::set_cache_mode int    [virtual]
 

set caching mode, 0==off.

Reimplemented from DisplayDevice.

Definition at line 1164 of file OpenGLRenderer.C.

References DisplayDevice::cacheMode, and ogl_cacheenabled.

void OpenGLRenderer::set_line_style int    [protected]
 

routines to perform various OGL-specific graphics operations.

Definition at line 724 of file OpenGLRenderer.C.

References DisplayDevice::lineStyle.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, and render.

void OpenGLRenderer::set_line_width int    [protected]
 

routines to perform various OGL-specific graphics operations.

Definition at line 716 of file OpenGLRenderer.C.

References DisplayDevice::lineWidth.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, and render.

void OpenGLRenderer::set_persp DisplayEye    = NOSTEREO [virtual]
 

set view configuration.

Definition at line 1506 of file OpenGLRenderer.C.

References DisplayDevice::Aspect, DisplayDevice::cpDown, DisplayDevice::cpLeft, DisplayDevice::cpRight, DisplayDevice::cpUp, DisplayDevice::eyeDir, DisplayDevice::eyeDist, DisplayDevice::eyePos, DisplayDevice::eyeSepDir, DisplayDevice::farClip, Matrix4::identity, immersadeskflip, DisplayDevice::left, DisplayDevice::LEFTEYE, Matrix4::multmatrix, DisplayDevice::nearClip, DisplayDevice::normal, DisplayDevice::NOSTEREO, ogl_glslprojectionmode, ogl_mvmatrix, ogl_pmatrix, ogl_textMat, ogl_viewport, DisplayDevice::ORTHOGRAPHIC, DisplayDevice::PERSPECTIVE, DisplayDevice::projection, DisplayDevice::right, DisplayDevice::RIGHTEYE, DisplayDevice::upDir, and DisplayDevice::vSize.

Referenced by left, normal, and right.

void OpenGLRenderer::set_render_mode int    [virtual]
 

set render mode, 0==norm.

Reimplemented from DisplayDevice.

Definition at line 1170 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, clear, normal, ogl_acrobat3dcapture, ogl_useblendedtrans, ogl_useglslshader, OPENGL_RENDER_ACROBAT3D, OPENGL_RENDER_GLSL, OPENGL_RENDER_NORMAL, DisplayDevice::renderMode, DisplayDevice::reshape, and DisplayDevice::update.

void OpenGLRenderer::set_sphere_mode int    [protected]
 

routines to perform various OGL-specific graphics operations.

Definition at line 751 of file OpenGLRenderer.C.

References DisplayDevice::sphereMode, and update_lists.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, and render.

void OpenGLRenderer::set_sphere_res int    [protected]
 

routines to perform various OGL-specific graphics operations.

Definition at line 736 of file OpenGLRenderer.C.

References DisplayDevice::sphereRes, and update_lists.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, and render.

void OpenGLRenderer::set_stereo_mode int    = 0 [virtual]
 

set stereo mode, 0==off.

Reimplemented from DisplayDevice.

Reimplemented in CaveDisplayDevice.

Definition at line 1139 of file OpenGLRenderer.C.

References DisplayDevice::_needRedraw, clear, disable_stencil_stereo, enable_stencil_stereo, DisplayDevice::inStereo, normal, OPENGL_STEREO_STENCIL_CHECKERBOARD, OPENGL_STEREO_STENCIL_COLUMNS, OPENGL_STEREO_STENCIL_ROWS, DisplayDevice::reshape, and DisplayDevice::update.

Referenced by enable_stencil_stereo.

void OpenGLRenderer::setup_initial_opengl_state void   
 

initialize VMD's OpenGL state.

Definition at line 61 of file OpenGLRenderer.C.

References ResizeArray< GLuint >::append, OpenGLExtensions::ATI, DISP_LIGHTS, dpl_initialized, ext, OpenGLExtensions::find_extensions, OpenGLExtensions::find_renderer, font1pxListBase, fontNpxListBase, GLTEXIMAGE3D, OpenGLExtensions::hasglfragmentshaderarb, OpenGLExtensions::hasglshaderobjectsarb, OpenGLExtensions::hasglshadinglangarb, OpenGLExtensions::hasglvertexshaderarb, OpenGLExtensions::hasrescalenormalext, OpenGLExtensions::hasstereo, OpenGLExtensions::hastex2d, OpenGLExtensions::hastex3d, hersheyDrawLetterOpenGL, Matrix4::identity, immersadeskflip, max2DtexSize, max2DtexX, max2DtexY, max3DtexSize, max3DtexX, max3DtexY, max3DtexZ, MAX_SPHERE_RES, MIN_SPHERE_RES, OpenGLExtensions::multitextureunits, NULL, OpenGLExtensions::NVIDIA, objQuadric, ogl_acrobat3dcapture, ogl_cachedebug, ogl_cacheenabled, ogl_cachelistbase, ogl_clipmode, ogl_glslmaterialindex, ogl_glslprojectionmode, ogl_glslserial, ogl_glsltexturemode, ogl_glsltoggle, ogl_lightingenabled, ogl_lightstate, ogl_rendstateserial, ogl_textMat, ogl_transpass, ogl_useblendedtrans, ogl_useglslshader, oglambient, ogldiffuse, OGLERR, OpenGLExtensions::oglmajor, oglmaterialindex, OpenGLExtensions::oglminor, oglopacity, ogloutline, ogloutlinewidth, OpenGLExtensions::oglrenderer, oglshininess, oglspecular, ogltransmode, DisplayDevice::PERSPECTIVE, pointSphereLists, pointsQuadric, OpenGLExtensions::PrintExtensions, shearstereo, simplegraphics, solidSphereLists, OpenGLExtensions::stereodrawforced, VMD_MAX_CLIP_PLANE, OpenGLExtensions::vmdQueryExtension, OpenGLExtensions::WIREGL, wiregl, DisplayDevice::x, and DisplayDevice::y.

Referenced by FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, OpenGLPbufferDisplayDevice::open_window, and OpenGLDisplayDevice::open_window.

virtual int OpenGLRenderer::supports_gui   [inline, virtual]
 

Does this display device support GUI's? The default stub display does not.

Reimplemented from DisplayDevice.

Reimplemented in VRJugglerDisplayDevice.

Definition at line 240 of file OpenGLRenderer.h.

void OpenGLRenderer::update_lists void    [protected]
 

Update the OpenGL sphere/cylinder/etc display lists.

Definition at line 635 of file OpenGLRenderer.C.

References MIN_SPHERE_RES, ResizeArray::num, pointSphereLists, solidSphereLists, SphereList, DisplayDevice::sphereMode, and DisplayDevice::sphereRes.

Referenced by set_sphere_mode, and set_sphere_res.

void OpenGLRenderer::update_shader_uniforms void *   ,
int    forceupdate
[protected]
 

Definition at line 3656 of file OpenGLRenderer.C.

References DISP_LIGHTS, DisplayDevice::eyeDir, GLGETUNIFORMLOCATIONARB, GLUNIFORM1FVARB, GLUNIFORM1IARB, GLUNIFORM3FVARB, GLUNIFORM4FVARB, ogl_fogmode, ogl_glslprojectionmode, ogl_glslserial, ogl_glsltexturemode, ogl_lightpos, ogl_lightstate, ogl_rendstateserial, oglambient, ogldiffuse, oglopacity, ogloutline, ogloutlinewidth, oglshininess, oglspecular, ogltransmode, DisplayDevice::PERSPECTIVE, OpenGLShader::ProgramObject, Stack< Matrix4 >::top, DisplayDevice::transMat, vec_normalize, and vec_scale.

Referenced by render.


Member Data Documentation

OpenGLCache OpenGLRenderer::displaylistcache [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 131 of file OpenGLRenderer.h.

Referenced by free_opengl_ctx, prepare3D, render, and render_done.

int OpenGLRenderer::dpl_initialized [protected]
 

have we initialized display lists?

Definition at line 170 of file OpenGLRenderer.h.

Referenced by OpenGLRenderer, and setup_initial_opengl_state.

OpenGLExtensions* OpenGLRenderer::ext [protected]
 

OpenGL Extensions class.

Definition at line 177 of file OpenGLRenderer.h.

Referenced by aa_off, aa_on, build3Dmipmaps, clear, enable_stencil_stereo, FltkOpenGLDisplayDevice::FltkOpenGLDisplayDevice, FreeVRDisplayDevice::FreeVRDisplayDevice, OpenGLPbufferDisplayDevice::init, OpenGLDisplayDevice::init, left, OpenGLPbufferDisplayDevice::open_window, OpenGLDisplayDevice::open_window, OpenGLRenderer, render, require_volume_texture, right, setup_initial_opengl_state, and ~OpenGLRenderer.

GLuint OpenGLRenderer::font1pxListBase [protected]
 

1-pixel wide non-AA font display list.

Definition at line 174 of file OpenGLRenderer.h.

Referenced by free_opengl_ctx, render, and setup_initial_opengl_state.

GLuint OpenGLRenderer::fontNpxListBase [protected]
 

N-pixel wide antialiased font display list.

Definition at line 175 of file OpenGLRenderer.h.

Referenced by free_opengl_ctx, render, and setup_initial_opengl_state.

int OpenGLRenderer::hastex2d [protected]
 

2D texturing features.

Definition at line 192 of file OpenGLRenderer.h.

int OpenGLRenderer::hastex3d [protected]
 

3D texturing features.

Definition at line 200 of file OpenGLRenderer.h.

int OpenGLRenderer::immersadeskflip [protected]
 

Immersadesk right-eye X-axis reflection mode.

Definition at line 187 of file OpenGLRenderer.h.

Referenced by set_persp, and setup_initial_opengl_state.

GLint OpenGLRenderer::max2DtexSize [protected]
 

2D texturing features.

Definition at line 195 of file OpenGLRenderer.h.

Referenced by setup_initial_opengl_state.

GLint OpenGLRenderer::max2DtexX [protected]
 

2D texturing features.

Definition at line 193 of file OpenGLRenderer.h.

Referenced by setup_initial_opengl_state.

GLint OpenGLRenderer::max2DtexY [protected]
 

2D texturing features.

Definition at line 194 of file OpenGLRenderer.h.

Referenced by setup_initial_opengl_state.

GLint OpenGLRenderer::max3DtexSize [protected]
 

3D texturing features.

Definition at line 204 of file OpenGLRenderer.h.

Referenced by setup_initial_opengl_state.

GLint OpenGLRenderer::max3DtexX [protected]
 

3D texturing features.

Definition at line 201 of file OpenGLRenderer.h.

Referenced by build3Dmipmaps, and setup_initial_opengl_state.

GLint OpenGLRenderer::max3DtexY [protected]
 

3D texturing features.

Definition at line 202 of file OpenGLRenderer.h.

Referenced by build3Dmipmaps, and setup_initial_opengl_state.

GLint OpenGLRenderer::max3DtexZ [protected]
 

3D texturing features.

Definition at line 203 of file OpenGLRenderer.h.

Referenced by build3Dmipmaps, and setup_initial_opengl_state.

GLUquadricObj* OpenGLRenderer::objQuadric [protected]
 

quadric objects and display lists for spheres, cylinders, and disks.

Definition at line 117 of file OpenGLRenderer.h.

Referenced by cylinder, OpenGLRenderer, setup_initial_opengl_state, and ~OpenGLRenderer.

int OpenGLRenderer::ogl_acrobat3dcapture [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 162 of file OpenGLRenderer.h.

Referenced by FreeVRDisplayDevice::FreeVRDisplayDevice, render, set_render_mode, and setup_initial_opengl_state.

GLfloat OpenGLRenderer::ogl_backgradient[2][4] [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 161 of file OpenGLRenderer.h.

Referenced by draw_background_gradient, and set_backgradient.

int OpenGLRenderer::ogl_cachedebug [protected]
 

flag to enable printing of debug messages.

Definition at line 167 of file OpenGLRenderer.h.

Referenced by setup_initial_opengl_state.

int OpenGLRenderer::ogl_cacheenabled [protected]
 

flag to enable display list caching.

Definition at line 166 of file OpenGLRenderer.h.

Referenced by render, set_cache_mode, and setup_initial_opengl_state.

GLint OpenGLRenderer::ogl_cachelistbase [protected]
 

base index for display list cache.

Definition at line 168 of file OpenGLRenderer.h.

Referenced by setup_initial_opengl_state.

int OpenGLRenderer::ogl_clipmode[VMD_MAX_CLIP_PLANE] [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 157 of file OpenGLRenderer.h.

Referenced by draw_background_gradient, render, and setup_initial_opengl_state.

GLint OpenGLRenderer::ogl_fogmode [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 146 of file OpenGLRenderer.h.

Referenced by render, and update_shader_uniforms.

int OpenGLRenderer::ogl_glslmaterialindex [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 152 of file OpenGLRenderer.h.

Referenced by FreeVRDisplayDevice::FreeVRDisplayDevice, render, and setup_initial_opengl_state.

int OpenGLRenderer::ogl_glslprojectionmode [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 153 of file OpenGLRenderer.h.

Referenced by FreeVRDisplayDevice::FreeVRDisplayDevice, set_persp, setup_initial_opengl_state, and update_shader_uniforms.

int OpenGLRenderer::ogl_glslserial [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 150 of file OpenGLRenderer.h.

Referenced by FreeVRDisplayDevice::FreeVRDisplayDevice, setup_initial_opengl_state, and update_shader_uniforms.

int OpenGLRenderer::ogl_glsltexturemode [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 154 of file OpenGLRenderer.h.

Referenced by FreeVRDisplayDevice::FreeVRDisplayDevice, render, setup_initial_opengl_state, and update_shader_uniforms.

int OpenGLRenderer::ogl_glsltoggle [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 151 of file OpenGLRenderer.h.

Referenced by FreeVRDisplayDevice::FreeVRDisplayDevice, render, render_done, and setup_initial_opengl_state.

GLfloat OpenGLRenderer::ogl_lightcolor[DISP_LIGHTS][4] [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 159 of file OpenGLRenderer.h.

Referenced by do_define_light, and render.

int OpenGLRenderer::ogl_lightingenabled [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 147 of file OpenGLRenderer.h.

Referenced by draw_background_gradient, FreeVRDisplayDevice::FreeVRDisplayDevice, render, and setup_initial_opengl_state.

GLfloat OpenGLRenderer::ogl_lightpos[DISP_LIGHTS][4] [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 160 of file OpenGLRenderer.h.

Referenced by do_define_light, and update_shader_uniforms.

int OpenGLRenderer::ogl_lightstate[DISP_LIGHTS] [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 158 of file OpenGLRenderer.h.

Referenced by do_activate_light, setup_initial_opengl_state, and update_shader_uniforms.

GLfloat OpenGLRenderer::ogl_mvmatrix[16] [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 143 of file OpenGLRenderer.h.

Referenced by abs_screen_loc_3D, find_3D_from_2D, VRJugglerDisplayDevice::render, FreeVRDisplayDevice::render, CaveDisplayDevice::render, and set_persp.

GLfloat OpenGLRenderer::ogl_pmatrix[16] [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 142 of file OpenGLRenderer.h.

Referenced by abs_screen_loc_3D, find_3D_from_2D, VRJugglerDisplayDevice::render, FreeVRDisplayDevice::render, CaveDisplayDevice::render, and set_persp.

int OpenGLRenderer::ogl_rendstateserial [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 156 of file OpenGLRenderer.h.

Referenced by do_activate_light, do_define_light, FreeVRDisplayDevice::FreeVRDisplayDevice, setup_initial_opengl_state, and update_shader_uniforms.

Matrix4 OpenGLRenderer::ogl_textMat [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 144 of file OpenGLRenderer.h.

Referenced by VRJugglerDisplayDevice::render, render, FreeVRDisplayDevice::render, CaveDisplayDevice::render, set_persp, and setup_initial_opengl_state.

int OpenGLRenderer::ogl_transpass [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 155 of file OpenGLRenderer.h.

Referenced by FreeVRDisplayDevice::FreeVRDisplayDevice, prepareOpaque, prepareTrans, and setup_initial_opengl_state.

int OpenGLRenderer::ogl_useblendedtrans [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 148 of file OpenGLRenderer.h.

Referenced by FreeVRDisplayDevice::FreeVRDisplayDevice, set_render_mode, and setup_initial_opengl_state.

int OpenGLRenderer::ogl_useglslshader [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 149 of file OpenGLRenderer.h.

Referenced by draw_background_gradient, FreeVRDisplayDevice::FreeVRDisplayDevice, render, set_render_mode, and setup_initial_opengl_state.

GLint OpenGLRenderer::ogl_viewport[4] [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 145 of file OpenGLRenderer.h.

Referenced by abs_screen_loc_3D, find_3D_from_2D, and set_persp.

float OpenGLRenderer::oglambient [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 135 of file OpenGLRenderer.h.

Referenced by render, setup_initial_opengl_state, and update_shader_uniforms.

float OpenGLRenderer::ogldiffuse [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 137 of file OpenGLRenderer.h.

Referenced by render, setup_initial_opengl_state, and update_shader_uniforms.

int OpenGLRenderer::oglmaterialindex [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 133 of file OpenGLRenderer.h.

Referenced by prepare3D, render, and setup_initial_opengl_state.

float OpenGLRenderer::oglopacity [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 134 of file OpenGLRenderer.h.

Referenced by render, setup_initial_opengl_state, and update_shader_uniforms.

float OpenGLRenderer::ogloutline [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 139 of file OpenGLRenderer.h.

Referenced by render, setup_initial_opengl_state, and update_shader_uniforms.

float OpenGLRenderer::ogloutlinewidth [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 140 of file OpenGLRenderer.h.

Referenced by render, setup_initial_opengl_state, and update_shader_uniforms.

float OpenGLRenderer::oglshininess [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 138 of file OpenGLRenderer.h.

Referenced by render, setup_initial_opengl_state, and update_shader_uniforms.

float OpenGLRenderer::oglspecular [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 136 of file OpenGLRenderer.h.

Referenced by render, setup_initial_opengl_state, and update_shader_uniforms.

int OpenGLRenderer::ogltransmode [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 141 of file OpenGLRenderer.h.

Referenced by render, setup_initial_opengl_state, and update_shader_uniforms.

ResizeArray<GLuint> OpenGLRenderer::pointSphereLists [protected]
 

quadric objects and display lists for spheres, cylinders, and disks.

Definition at line 121 of file OpenGLRenderer.h.

Referenced by free_opengl_ctx, setup_initial_opengl_state, and update_lists.

GLUquadricObj* OpenGLRenderer::pointsQuadric [protected]
 

quadric objects and display lists for spheres, cylinders, and disks.

Definition at line 116 of file OpenGLRenderer.h.

Referenced by OpenGLRenderer, setup_initial_opengl_state, and ~OpenGLRenderer.

int OpenGLRenderer::shearstereo [protected]
 

Use shear matrix stereo rather than eye rotation.

Definition at line 188 of file OpenGLRenderer.h.

Referenced by setup_initial_opengl_state.

int OpenGLRenderer::simplegraphics [protected]
 

Force use of simplest OpenGL primitives.

Definition at line 185 of file OpenGLRenderer.h.

Referenced by render, and setup_initial_opengl_state.

ResizeArray<GLuint> OpenGLRenderer::solidSphereLists [protected]
 

one sphere display list for each supported resolution.

Definition at line 120 of file OpenGLRenderer.h.

Referenced by free_opengl_ctx, setup_initial_opengl_state, and update_lists.

GLuint OpenGLRenderer::SphereList [protected]
 

the current sphere display list.

Definition at line 124 of file OpenGLRenderer.h.

Referenced by render, and update_lists.

OpenGLCache OpenGLRenderer::texturecache [protected]
 

cached copies of most recently used OpenGL state, materials, etc.

Definition at line 132 of file OpenGLRenderer.h.

Referenced by free_opengl_ctx, prepare3D, render_done, and require_volume_texture.

int OpenGLRenderer::wiregl [protected]
 

Using Stanford's WireGL library.

Definition at line 186 of file OpenGLRenderer.h.

Referenced by setup_initial_opengl_state.


The documentation for this class was generated from the following files:
Generated on Tue May 21 01:47:41 2013 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002