LLGLManager Class Reference

#include <llgl.h>

Collaboration diagram for LLGLManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLGLManager ()
bool initGL ()
void shutdownGL ()
void initWGL ()
LLString getRawGLString ()
void getPixelFormat ()
LLString getGLInfoString ()

Public Attributes

BOOL mInited
BOOL mIsDisabled
BOOL mHasMultitexture
S32 mNumTextureUnits
BOOL mHasMipMapGeneration
BOOL mHasPalettedTextures
BOOL mHasCompressedTextures
BOOL mHasFramebufferObject
BOOL mHasVertexBufferObject
BOOL mHasPBuffer
BOOL mHasShaderObjects
BOOL mHasVertexShader
BOOL mHasFragmentShader
BOOL mHasOcclusionQuery
BOOL mHasPointParameters
BOOL mHasAnisotropic
BOOL mHasARBEnvCombine
BOOL mHasCubeMap
BOOL mIsATI
BOOL mIsNVIDIA
BOOL mIsIntel
BOOL mIsGF2or4MX
BOOL mIsGF3
BOOL mIsGFFX
BOOL mATIOffsetVerticalLines
BOOL mHasSeparateSpecularColor
S32 mDriverVersionMajor
S32 mDriverVersionMinor
S32 mDriverVersionRelease
F32 mGLVersion
LLString mDriverVersionVendorString
S32 mVRAM
S32 mGLMaxVertexRange
S32 mGLMaxIndexRange
LLString mGLVendor
LLString mGLVendorShort
LLString mGLRenderer

Private Member Functions

void initExtensions ()
void initGLStates ()
void initGLImages ()

Detailed Description

Definition at line 52 of file llgl.h.


Constructor & Destructor Documentation

LLGLManager::LLGLManager (  ) 

Definition at line 271 of file llgl.cpp.

References FALSE, mATIOffsetVerticalLines, mDriverVersionMajor, mDriverVersionMinor, mDriverVersionRelease, mGLMaxIndexRange, mGLMaxVertexRange, mGLVersion, mHasAnisotropic, mHasARBEnvCombine, mHasCompressedTextures, mHasCubeMap, mHasFragmentShader, mHasMipMapGeneration, mHasMultitexture, mHasPointParameters, mHasShaderObjects, mHasVertexShader, mInited, mIsATI, mIsDisabled, mIsGF2or4MX, mIsGF3, mIsGFFX, mIsIntel, mIsNVIDIA, mNumTextureUnits, and mVRAM.


Member Function Documentation

LLString LLGLManager::getGLInfoString (  ) 

Definition at line 462 of file llgl.cpp.

References LLStringBase< char >::replaceChar().

Referenced by main().

void LLGLManager::getPixelFormat (  ) 

LLString LLGLManager::getRawGLString (  ) 

Definition at line 480 of file llgl.cpp.

Referenced by LLFeatureManager::loadGPUClass().

void LLGLManager::initExtensions (  )  [private]

Definition at line 503 of file llgl.cpp.

References FALSE, glBindBufferARB, glBindProgramARB, glBufferSubDataARB, glColorTableEXT, glDrawRangeElements, glEnableVertexAttribArrayARB, glGenBuffersARB, glGenProgramsARB, glGetIntegerv, glGetProgramEnvParameterfvARB, glGetProgramLocalParameterfvARB, glGetProgramStringARB, glProgramEnvParameter4dvARB, glProgramEnvParameter4fvARB, glProgramLocalParameter4dvARB, glProgramLocalParameter4fvARB, glVertexAttribPointerARB, llendl, llinfos, llwarns, mGLMaxIndexRange, mGLMaxVertexRange, mHasAnisotropic, mHasARBEnvCombine, mHasCompressedTextures, mHasCubeMap, mHasFragmentShader, mHasFramebufferObject, mHasMipMapGeneration, mHasMultitexture, mHasOcclusionQuery, mHasPalettedTextures, mHasPointParameters, mHasSeparateSpecularColor, mHasShaderObjects, mHasVertexBufferObject, mHasVertexShader, mInited, mIsATI, mIsIntel, and TRUE.

Referenced by initGL().

bool LLGLManager::initGL (  ) 

Definition at line 350 of file llgl.cpp.

References FALSE, glGetIntegerv, initExtensions(), initGLStates(), llendl, llerrs, llmin(), llwarns, mATIOffsetVerticalLines, MAX_GL_TEXTURE_UNITS, mDriverVersionMajor, mDriverVersionMinor, mDriverVersionRelease, mDriverVersionVendorString, mGLRenderer, mGLVendor, mGLVendorShort, mGLVersion, mHasMultitexture, mInited, mIsATI, mIsGF2or4MX, mIsGF3, mIsGFFX, mIsIntel, mIsNVIDIA, mNumTextureUnits, parse_gl_version(), LLStringBase< char >::toUpper(), and TRUE.

void LLGLManager::initGLImages (  )  [private]

void LLGLManager::initGLStates (  )  [private]

Definition at line 1292 of file llgl.cpp.

References LLGLState::initClass().

Referenced by initGL().

void LLGLManager::initWGL (  ) 

Definition at line 318 of file llgl.cpp.

References FALSE, llendl, llwarns, and mHasPBuffer.

void LLGLManager::shutdownGL (  ) 

Definition at line 489 of file llgl.cpp.

References FALSE, mInited, and stop_glerror.


Member Data Documentation

BOOL LLGLManager::mATIOffsetVerticalLines

Definition at line 96 of file llgl.h.

Referenced by gl_line_2d(), gl_rect_2d(), initGL(), and LLGLManager().

S32 LLGLManager::mDriverVersionMajor

Definition at line 112 of file llgl.h.

Referenced by initGL(), and LLGLManager().

S32 LLGLManager::mDriverVersionMinor

Definition at line 113 of file llgl.h.

Referenced by initGL(), and LLGLManager().

S32 LLGLManager::mDriverVersionRelease

Definition at line 114 of file llgl.h.

Referenced by initGL(), and LLGLManager().

LLString LLGLManager::mDriverVersionVendorString

Definition at line 116 of file llgl.h.

Referenced by LLFloaterReporter::gatherReport(), initGL(), and send_stats().

S32 LLGLManager::mGLMaxIndexRange

Definition at line 120 of file llgl.h.

Referenced by LLParticlePartition::getGeometry(), initExtensions(), llDrawRangeElements(), LLGLManager(), LLFace::pushVertices(), and LLVolumeGeometryManager::registerFace().

S32 LLGLManager::mGLMaxVertexRange

Definition at line 119 of file llgl.h.

Referenced by LLParticlePartition::getGeometry(), initExtensions(), llDrawRangeElements(), LLGLManager(), LLFace::pushVertices(), and LLVolumeGeometryManager::registerFace().

LLString LLGLManager::mGLRenderer

Definition at line 131 of file llgl.h.

Referenced by LLFloaterReporter::gatherReport(), and initGL().

LLString LLGLManager::mGLVendor

Definition at line 127 of file llgl.h.

Referenced by initGL().

LLString LLGLManager::mGLVendorShort

Definition at line 128 of file llgl.h.

Referenced by initGL(), and send_stats().

F32 LLGLManager::mGLVersion

Definition at line 115 of file llgl.h.

Referenced by initGL(), LLFeatureManager::initGraphicsFeatureMasks(), and LLGLManager().

BOOL LLGLManager::mHasAnisotropic

Definition at line 85 of file llgl.h.

Referenced by initExtensions(), LLGLManager(), and LLImageGL::setMipFilterNearest().

BOOL LLGLManager::mHasARBEnvCombine

Definition at line 86 of file llgl.h.

Referenced by initExtensions(), LLGLManager(), and LLDrawPoolTerrain::render().

BOOL LLGLManager::mHasCompressedTextures

Definition at line 72 of file llgl.h.

Referenced by initExtensions(), and LLGLManager().

BOOL LLGLManager::mHasCubeMap

Definition at line 87 of file llgl.h.

Referenced by LLCubeMap::bind(), LLCubeMap::disable(), LLCubeMap::enable(), LLVOSky::initCubeMap(), initExtensions(), LLCubeMap::initGL(), LLGLManager(), LLDrawPoolWater::prerender(), LLPanelDisplay3::refreshEnabledState(), LLVOSky::restoreGL(), and LLShaderMgr::setShaders().

BOOL LLGLManager::mHasFragmentShader

Definition at line 80 of file llgl.h.

Referenced by LLPipeline::canUseVertexShaders(), initExtensions(), LLFeatureManager::initGraphicsFeatureMasks(), and LLGLManager().

BOOL LLGLManager::mHasFramebufferObject

Definition at line 73 of file llgl.h.

Referenced by initExtensions(), LLPipeline::renderGeom(), and LLShaderMgr::setShaders().

BOOL LLGLManager::mHasMipMapGeneration

Definition at line 70 of file llgl.h.

Referenced by LLImageGL::createGLTexture(), initExtensions(), and LLGLManager().

BOOL LLGLManager::mHasMultitexture

Definition at line 68 of file llgl.h.

Referenced by initExtensions(), initGL(), LLGLManager(), main(), LLDrawPoolWater::render(), LLDrawPoolTerrain::render(), and LLDrawPoolWater::renderShaderSimple().

BOOL LLGLManager::mHasOcclusionQuery

Definition at line 81 of file llgl.h.

Referenced by display(), LLUseOcclusionListener::handleEvent(), init_debug_rendering_menu(), and initExtensions().

BOOL LLGLManager::mHasPalettedTextures

Definition at line 71 of file llgl.h.

Referenced by initExtensions(), LLTexLayerParamAlpha::render(), and set_palette().

BOOL LLGLManager::mHasPBuffer

Definition at line 77 of file llgl.h.

Referenced by initWGL().

BOOL LLGLManager::mHasPointParameters

Definition at line 82 of file llgl.h.

Referenced by initExtensions(), and LLGLManager().

BOOL LLGLManager::mHasSeparateSpecularColor

Definition at line 110 of file llgl.h.

Referenced by initExtensions().

BOOL LLGLManager::mHasShaderObjects

Definition at line 78 of file llgl.h.

Referenced by initExtensions(), and LLGLManager().

BOOL LLGLManager::mHasVertexBufferObject

Definition at line 76 of file llgl.h.

Referenced by initExtensions(), LLViewerWindow::LLViewerWindow(), and LLPanelDisplay2::refreshEnabledState().

BOOL LLGLManager::mHasVertexShader

Definition at line 79 of file llgl.h.

Referenced by LLPipeline::canUseVertexShaders(), initExtensions(), LLFeatureManager::initGraphicsFeatureMasks(), and LLGLManager().

BOOL LLGLManager::mInited

Definition at line 64 of file llgl.h.

Referenced by assert_glerror(), LLImageGL::createGLTexture(), initExtensions(), initGL(), LLCubeMap::initGL(), LLGLManager(), and shutdownGL().

BOOL LLGLManager::mIsATI

Definition at line 90 of file llgl.h.

Referenced by initExtensions(), initGL(), LLFeatureManager::initGraphicsFeatureMasks(), and LLGLManager().

BOOL LLGLManager::mIsDisabled

Definition at line 65 of file llgl.h.

Referenced by LLImageGL::bindTextureInternal(), LLImageGL::cleanup(), LLImageGL::createGLTexture(), LLViewerParcelOverlay::idleUpdate(), LLCubeMap::init(), LLGLManager(), LLViewerWindow::restoreGL(), LLViewerWindow::stopGL(), LLDynamicTexture::updateAllInstances(), LLViewerImageList::updateImagesCreateTextures(), LLViewerImageList::updateImagesMediaStreams(), LLVOSky::updateSky(), and LLVOAvatar::updateTextures().

BOOL LLGLManager::mIsGF2or4MX

Definition at line 93 of file llgl.h.

Referenced by LLImageGL::createGLTexture(), initGL(), LLFeatureManager::initGraphicsFeatureMasks(), and LLGLManager().

BOOL LLGLManager::mIsGF3

Definition at line 94 of file llgl.h.

Referenced by initGL(), and LLGLManager().

BOOL LLGLManager::mIsGFFX

Definition at line 95 of file llgl.h.

Referenced by initGL(), LLFeatureManager::initGraphicsFeatureMasks(), and LLGLManager().

BOOL LLGLManager::mIsIntel

Definition at line 92 of file llgl.h.

Referenced by initExtensions(), initGL(), LLFeatureManager::initGraphicsFeatureMasks(), and LLGLManager().

BOOL LLGLManager::mIsNVIDIA

Definition at line 91 of file llgl.h.

Referenced by initGL(), LLFeatureManager::initGraphicsFeatureMasks(), and LLGLManager().

S32 LLGLManager::mNumTextureUnits

Definition at line 69 of file llgl.h.

Referenced by LLImageGL::destroyGL(), LLImageGL::destroyGLTexture(), initGL(), LLGLManager(), and LLDrawPoolTerrain::render().

S32 LLGLManager::mVRAM

Definition at line 118 of file llgl.h.

Referenced by LLViewerImageList::getMaxVideoRamSetting(), LLGLManager(), and main().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:23 2010 for Second Life Viewer by  doxygen 1.4.7