#include <string>
#include <map>
#include "llerror.h"
#include "v4color.h"
#include "llstring.h"
#include "stdtypes.h"
#include "v4math.h"
#include "llplane.h"
#include "llgltypes.h"
#include "llglheaders.h"
#include "glh/glh_linear.h"
#include "llglstates.h"
Go to the source code of this file.
Classes | |
class | LLGLManager |
class | LLGLState |
class | LLGLEnableBlending |
class | LLGLEnableAlphaReject |
class | LLGLEnable |
TODO: Being deprecated. More... | |
class | LLGLDisable |
TODO: Being deprecated. More... | |
class | LLGLUserClipPlane |
class | LLGLClampToFarClip |
class | LLGLNamePool |
struct | LLGLNamePool::NameEntry |
struct | LLGLNamePool::CompareUsed |
Defines | |
#define | LL_GL_ERRS LL_ERRS("RenderState") |
#define | stop_glerror() assert_glerror() |
#define | llglassertok() assert_glerror() |
#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 | |
BOOL | gDebugGL |
LLGLManager | gGLManager |
LLMatrix4 | gGLObliqueProjectionInverse |
BOOL | gClothRipple |
BOOL | gNoRender |
Copyright (c) 2001-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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 LL_GL_ERRS LL_ERRS("RenderState") |
Definition at line 53 of file llgl.h.
Referenced by LLGLState::checkClientArrays(), LLGLState::checkStates(), and LLGLState::checkTextureChannels().
#define llglassertok | ( | ) | assert_glerror() |
Definition at line 154 of file llgl.h.
Referenced by LLVertexBufferTerrain::setupVertexBuffer(), and LLVertexBuffer::setupVertexBuffer().
#define stop_glerror | ( | ) | assert_glerror() |
Definition at line 153 of file llgl.h.
Referenced by LLFontGL::addChar(), LLRenderTarget::allocate(), LLGLSLShader::attachObject(), LLDrawPoolBump::beginBump(), LLViewerImage::bind(), LLVOAvatar::bindScratchTexture(), LLPipeline::blurReflectionMap(), LLVOAvatar::buildCharacter(), LLGLState::checkClientArrays(), LLGLState::checkStates(), LLViewerImage::cleanupClass(), LLPipeline::createGLBuffers(), LLImageGL::createGLTexture(), LLVOAvatar::deleteCachedImages(), LLPipeline::destroyGL(), LLImageGL::destroyGL(), LLImageGL::destroyGLTexture(), display(), LLViewerWindow::draw(), LLFloaterImagePreview::draw(), LLVOTree::drawBranchPipeline(), LLViewerJointMesh::drawShape(), LLPipeline::generateReflectionMap(), LLPipeline::generateWaterReflection(), 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(), LLAppViewer::idle(), LLAppViewer::idleNetwork(), LLPipeline::init(), LLCubeMap::initGL(), LLAppViewer::initWindow(), LLGLState::LLGLState(), LLTexLayerSetBuffer::LLTexLayerSetBuffer(), LLVOAvatar::loadAvatar(), LLShaderMgr::loadShaderFile(), LLVertexBuffer::mapBuffer(), LLVOAvatar::onBakedTextureMasksLoaded(), process_cached_object_update(), process_compressed_object_update(), process_object_update(), LLVOAvatar::processAnimationStateChanges(), LLViewerWindow::rawSnapshot(), LLTexLayerSetBuffer::readBackAndUpload(), 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(), LLSelectMgr::renderSilhouettes(), LLImageGL::restoreGL(), set_binormals(), set_vertex_clothing_weights(), set_vertex_weights(), LLVertexBuffer::setBuffer(), LLImageGL::setClamp(), LLImageGL::setImage(), LLTexLayerSet::setInfo(), LLImageGL::setMipFilterNearest(), LLImageGL::setSubImage(), LLImageGL::setSubImageFromFrameBuffer(), LLVertexBuffer::setupVertexBuffer(), LLDrawPoolWater::shade(), LLGLManager::shutdownGL(), LLViewerWindow::stopGL(), LLGLSLShader::unload(), LLVertexBuffer::unmapBuffer(), LLWLParamManager::update(), LLWaterParamManager::update(), LLPipeline::updateCull(), LLViewerJointMesh::updateFaceData(), LLVOSky::updateFog(), LLVOAvatar::updateMeshData(), LLScreenClipRect::updateScissorRegion(), LLGLState::~LLGLState(), LLTexLayerSetBuffer::~LLTexLayerSetBuffer(), and LLViewerWindow::~LLViewerWindow().
void assert_glerror | ( | ) |
Definition at line 930 of file llgl.cpp.
References gDebugGL, gNoRender, LL_ENDL, LL_ERRS, LLGLManager::mInited, and NULL.
Referenced by LLImageGL::isValidForSculpt().
void disable_binormals | ( | const S32 | index | ) |
Definition at line 1386 of file llgl.cpp.
Referenced by LLDrawPoolAvatar::endSkinned().
void disable_cloth_weights | ( | const S32 | index | ) |
Definition at line 1404 of file llgl.cpp.
Referenced by LLDrawPoolAvatar::endSkinned().
void disable_vertex_weighting | ( | const S32 | index | ) |
Definition at line 1369 of file llgl.cpp.
Referenced by LLDrawPoolAvatar::endSkinned(), and LLDrawPoolAvatar::renderForSelect().
void enable_binormals | ( | const S32 | index | ) |
Definition at line 1376 of file llgl.cpp.
Referenced by LLDrawPoolAvatar::beginSkinned().
void enable_cloth_weights | ( | const S32 | index | ) |
Definition at line 1397 of file llgl.cpp.
Referenced by LLDrawPoolAvatar::beginSkinned().
void enable_vertex_weighting | ( | const S32 | index | ) |
Definition at line 1362 of file llgl.cpp.
Referenced by LLDrawPoolAvatar::beginSkinned(), and LLDrawPoolAvatar::renderForSelect().
void init_glstates | ( | ) |
void rotate_quat | ( | LLQuaternion & | rotation | ) |
Definition at line 918 of file llgl.cpp.
References LLQuaternion::getAngleAxis(), and RAD_TO_DEG.
Definition at line 1427 of file llgl.cpp.
References FALSE, and stop_glerror.
Referenced by LLVertexBufferAvatar::setupVertexBuffer().
void set_palette | ( | U8 * | palette_data | ) |
Definition at line 1436 of file llgl.cpp.
References LLGLManager::mHasPalettedTextures.
Referenced by LLGradientPaletteList::setHardwarePalette().
Definition at line 1419 of file llgl.cpp.
References stop_glerror, and TRUE.
Referenced by LLVertexBufferAvatar::setupVertexBuffer().
Definition at line 1411 of file llgl.cpp.
References FALSE, and stop_glerror.
Referenced by LLVertexBufferAvatar::setupVertexBuffer().
Definition at line 255 of file llgl.cpp.
Referenced by LLRenderTarget::allocate(), LLFeatureManager::applyBaseMasks(), LLDrawPoolSimple::beginRenderPass(), LLGLSLShader::bind(), LLCubeMap::bind(), LLImageGL::bindTextureInternal(), LLPipeline::canUseVertexShaders(), LLImageGL::cleanup(), LLImageGL::createGLTexture(), LLImageGL::destroyGL(), LLImageGL::destroyGLTexture(), LLCubeMap::disableTexture(), LLCubeMap::disableTextureCoords(), display(), LLCubeMap::enableTexture(), LLCubeMap::enableTextureCoords(), LLFloaterReporter::gatherReport(), LLParticlePartition::getGeometry(), LLViewerImageList::getMaxVideoRamSetting(), gl_line_2d(), gl_rect_2d(), handleUseOcclusionChanged(), LLViewerParcelOverlay::idleUpdate(), LLCubeMap::init(), LLAppViewer::init(), init_debug_rendering_menu(), LLVOSky::initCubeMap(), LLCubeMap::initGL(), LLAppViewerWin32::initHardwareTest(), LLViewerWindow::LLViewerWindow(), LLFeatureManager::loadGPUClass(), LLDrawPoolWater::prerender(), LLViewerWindow::rawSnapshot(), LLPanelDisplay::refreshEnabledState(), LLFloaterHardwareSettings::refreshEnabledState(), LLVolumeGeometryManager::registerFace(), LLTexLayerParamAlpha::render(), LLDrawPoolWater::render(), LLDrawPoolTerrain::render(), LLDrawPoolSky::render(), LLVOSky::restoreGL(), LLViewerWindow::restoreGL(), send_stats(), LLImageGL::setMipFilterNearest(), LLShaderMgr::setShaders(), LLViewerWindow::stopGL(), LLGLSLShader::unbind(), LLRenderTarget::unbindTarget(), LLDynamicTexture::updateAllInstances(), LLViewerImageList::updateImages(), LLViewerImageList::updateImagesCreateTextures(), LLVOSky::updateSky(), LLVOAvatar::updateTextures(), and LLSpatialGroup::~LLSpatialGroup().