llgl.h File Reference

LLGL definition. More...

#include <string>
#include <map>
#include "llerror.h"
#include "v4color.h"
#include "llstring.h"
#include "stdtypes.h"
#include "v4math.h"
#include "llgltypes.h"
#include "llglstates.h"

Include dependency graph for llgl.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LLGLManager
class  LLGLState
class  LLGLEnable
class  LLGLDisable

Defines

#define LL_DEBUG_GL   1
#define LL_GL_ERRS   llerrs
#define stop_glerror()
#define llglassertok()
#define llglassertok_always()   assert_glerror()

Functions

void rotate_quat (LLQuaternion &rotation)
void flush_glerror ()
void assert_glerror ()
void clear_glerror ()
void init_glstates ()
void enable_vertex_weighting (const S32 index)
void disable_vertex_weighting (const S32 index)
void enable_binormals (const S32 index)
void disable_binormals (const S32 index)
void enable_cloth_weights (const S32 index)
void disable_cloth_weights (const S32 index)
void set_vertex_weights (const S32 index, const U32 stride, const F32 *weights)
void set_vertex_clothing_weights (const S32 index, const U32 stride, const LLVector4 *weights)
void set_binormals (const S32 index, const U32 stride, const LLVector3 *binormals)
void set_palette (U8 *palette_data)
void parse_gl_version (S32 *major, S32 *minor, S32 *release, LLString *vendor_specific)

Variables

LLGLManager gGLManager
BOOL gClothRipple
BOOL gNoRender


Detailed Description

LLGL definition.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llgl.h.


Define Documentation

#define LL_DEBUG_GL   1

Definition at line 47 of file llgl.h.

#define LL_GL_ERRS   llerrs

Definition at line 49 of file llgl.h.

Referenced by LLGLState::checkClientArrays(), LLGLState::checkStates(), and LLGLState::checkTextureChannels().

 
#define llglassertok (  ) 

Definition at line 157 of file llgl.h.

Referenced by LLVertexBufferTerrain::setupVertexBuffer(), and LLVertexBuffer::setupVertexBuffer().

 
#define llglassertok_always (  )     assert_glerror()

Definition at line 160 of file llgl.h.

 
#define stop_glerror (  ) 

Definition at line 156 of file llgl.h.

Referenced by LLFontGL::addChar(), LLGLSLShader::attachObject(), LLDrawPoolBump::beginBump(), LLViewerImage::bind(), LLVOAvatar::bindScratchTexture(), LLVOAvatar::buildCharacter(), LLGLState::checkClientArrays(), LLGLState::checkStates(), LLViewerImage::cleanupClass(), LLImageGL::createGLTexture(), LLVOAvatar::deleteCachedImages(), LLPipeline::destroyGL(), LLImageGL::destroyGL(), LLImageGL::destroyGLTexture(), display(), LLSpatialPartition::doOcclusion(), LLViewerWindow::draw(), LLFloaterImport::draw(), LLFloaterImagePreview::draw(), LLVOTree::drawBranchPipeline(), LLViewerJointMesh::drawShape(), LLVOAvatar::getScratchTexName(), gl_draw_scaled_image_with_border(), gl_drop_shadow(), gl_rect_2d(), gl_rect_2d_xor(), gl_state_for_2d(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitUIElementAsync(), idle(), idle_network(), LLPipeline::init(), LLCubeMap::initGL(), LLGLState::LLGLState(), LLTexLayerSetBuffer::LLTexLayerSetBuffer(), LLViewerWindow::LLViewerWindow(), LLVOAvatar::loadAvatar(), LLShaderMgr::loadShader(), LLVOAvatar::onBakedTextureMasksLoaded(), process_cached_object_update(), process_compressed_object_update(), process_object_update(), LLVOAvatar::processAnimationStateChanges(), LLSpatialPartition::processOcclusion(), LLViewerWindow::rawSnapshot(), LLTexLayerSetBuffer::readBackAndUpload(), LLImageGL::readBackRaw(), LLVolumeGeometryManager::rebuildGeom(), LLSpatialPartition::rebuildGeom(), LLTexLayerParamAlpha::render(), LLTexLayer::render(), LLTexLayerSet::render(), LLTexLayerSetBuffer::render(), LLImagePreviewSculpted::render(), LLImagePreviewAvatar::render(), LLPreviewAnimation::render(), LLDrawPoolWater::render(), render_ui_2d(), render_ui_3d(), LLTexLayerSet::renderBump(), LLPipeline::renderGeom(), LLTexLayer::renderImageRaw(), LLViewerWindow::renderSelections(), LLDrawPoolWater::renderShaderSimple(), LLSelectMgr::renderSilhouettes(), LLImageGL::restoreGL(), set_binormals(), set_vertex_clothing_weights(), set_vertex_weights(), LLImageGL::setClamp(), LLImageGL::setImage(), LLTexLayerSet::setInfo(), LLImageGL::setMipFilterNearest(), LLUI::setScissorRegionLocal(), LLUI::setScissorRegionScreen(), LLImageGL::setSubImage(), LLImageGL::setSubImageFromFrameBuffer(), LLVertexBuffer::setupVertexBuffer(), LLGLManager::shutdownGL(), LLViewerWindow::stopGL(), LLGLSLShader::unload(), LLPipeline::updateCull(), LLVOSky::updateFog(), LLGLState::~LLGLState(), LLTexLayerSetBuffer::~LLTexLayerSetBuffer(), and LLViewerWindow::~LLViewerWindow().


Function Documentation

void assert_glerror (  ) 

Definition at line 927 of file llgl.cpp.

References gGLManager, glGetError, gNoRender, llendl, llerrs, and LLGLManager::mInited.

void clear_glerror (  ) 

Definition at line 948 of file llgl.cpp.

References glGetError.

void disable_binormals ( const S32  index  ) 

Definition at line 1324 of file llgl.cpp.

Referenced by LLDrawPoolAvatar::endSkinned().

void disable_cloth_weights ( const S32  index  ) 

Definition at line 1342 of file llgl.cpp.

Referenced by LLDrawPoolAvatar::endSkinned().

void disable_vertex_weighting ( const S32  index  ) 

Definition at line 1307 of file llgl.cpp.

Referenced by LLDrawPoolAvatar::endSkinned(), and LLDrawPoolAvatar::renderForSelect().

void enable_binormals ( const S32  index  ) 

Definition at line 1314 of file llgl.cpp.

References glEnableVertexAttribArrayARB.

Referenced by LLDrawPoolAvatar::beginSkinned().

void enable_cloth_weights ( const S32  index  ) 

Definition at line 1335 of file llgl.cpp.

References glEnableVertexAttribArrayARB.

Referenced by LLDrawPoolAvatar::beginSkinned().

void enable_vertex_weighting ( const S32  index  ) 

Definition at line 1300 of file llgl.cpp.

References glEnableVertexAttribArrayARB.

Referenced by LLDrawPoolAvatar::beginSkinned(), and LLDrawPoolAvatar::renderForSelect().

void flush_glerror (  ) 

Definition at line 922 of file llgl.cpp.

References glGetError.

void init_glstates (  ) 

void parse_gl_version ( S32 major,
S32 minor,
S32 release,
LLString vendor_specific 
)

Definition at line 1383 of file llgl.cpp.

References LLStringBase< char >::convertToS32(), i, S32, and start.

Referenced by LLGLManager::initGL().

void rotate_quat ( LLQuaternion rotation  ) 

Definition at line 915 of file llgl.cpp.

References LLQuaternion::getAngleAxis(), glRotatef, RAD_TO_DEG, x, y, and z.

void set_binormals ( const S32  index,
const U32  stride,
const LLVector3 binormals 
)

Definition at line 1365 of file llgl.cpp.

References FALSE, glVertexAttribPointerARB, and stop_glerror.

Referenced by LLVertexBufferAvatar::setupVertexBuffer().

void set_palette ( U8 palette_data  ) 

Definition at line 1374 of file llgl.cpp.

References gGLManager, glColorTableEXT, and LLGLManager::mHasPalettedTextures.

Referenced by LLGradientPaletteList::setHardwarePalette().

void set_vertex_clothing_weights ( const S32  index,
const U32  stride,
const LLVector4 weights 
)

Definition at line 1357 of file llgl.cpp.

References glVertexAttribPointerARB, stop_glerror, and TRUE.

Referenced by LLVertexBufferAvatar::setupVertexBuffer().

void set_vertex_weights ( const S32  index,
const U32  stride,
const F32 weights 
)

Definition at line 1349 of file llgl.cpp.

References FALSE, glVertexAttribPointerARB, and stop_glerror.

Referenced by LLVertexBufferAvatar::setupVertexBuffer().


Variable Documentation

BOOL gClothRipple

Definition at line 75 of file llgl.cpp.

LLGLManager gGLManager

Definition at line 269 of file llgl.cpp.

Referenced by assert_glerror(), LLCubeMap::bind(), LLImageGL::bindTextureInternal(), LLPipeline::canUseVertexShaders(), LLImageGL::cleanup(), LLImageGL::createGLTexture(), LLImageGL::destroyGL(), LLImageGL::destroyGLTexture(), LLCubeMap::disable(), display(), LLCubeMap::enable(), LLFloaterReporter::gatherReport(), LLParticlePartition::getGeometry(), LLViewerImageList::getMaxVideoRamSetting(), gl_line_2d(), gl_rect_2d(), LLUseOcclusionListener::handleEvent(), LLViewerParcelOverlay::idleUpdate(), LLCubeMap::init(), init_debug_rendering_menu(), LLVOSky::initCubeMap(), LLCubeMap::initGL(), LLFeatureManager::initGraphicsFeatureMasks(), llDrawRangeElements(), LLViewerWindow::LLViewerWindow(), LLFeatureManager::loadGPUClass(), main(), LLDrawPoolWater::prerender(), LLFace::pushVertices(), LLPanelDisplay2::refreshEnabledState(), LLPanelDisplay3::refreshEnabledState(), LLVolumeGeometryManager::registerFace(), LLDrawPoolTerrain::render(), LLDrawPoolWater::render(), LLTexLayerParamAlpha::render(), LLPipeline::renderGeom(), LLDrawPoolWater::renderShaderSimple(), LLViewerWindow::restoreGL(), LLVOSky::restoreGL(), send_stats(), set_palette(), LLImageGL::setMipFilterNearest(), LLShaderMgr::setShaders(), LLViewerWindow::stopGL(), LLDynamicTexture::updateAllInstances(), LLViewerImageList::updateImagesCreateTextures(), LLViewerImageList::updateImagesMediaStreams(), LLVOSky::updateSky(), and LLVOAvatar::updateTextures().

BOOL gNoRender

Definition at line 76 of file llgl.cpp.


Generated on Thu Jul 1 06:10:16 2010 for Second Life Viewer by  doxygen 1.4.7