#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.
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 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 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().
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 1307 of file llgl.cpp.
Referenced by LLDrawPoolAvatar::endSkinned(), and LLDrawPoolAvatar::renderForSelect().
Definition at line 1314 of file llgl.cpp.
References glEnableVertexAttribArrayARB.
Referenced by LLDrawPoolAvatar::beginSkinned().
Definition at line 1335 of file llgl.cpp.
References glEnableVertexAttribArrayARB.
Referenced by LLDrawPoolAvatar::beginSkinned().
Definition at line 1300 of file llgl.cpp.
References glEnableVertexAttribArrayARB.
Referenced by LLDrawPoolAvatar::beginSkinned(), and LLDrawPoolAvatar::renderForSelect().
void flush_glerror | ( | ) |
void init_glstates | ( | ) |
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.
Definition at line 1365 of file llgl.cpp.
References FALSE, glVertexAttribPointerARB, and stop_glerror.
Referenced by LLVertexBufferAvatar::setupVertexBuffer().
Definition at line 1374 of file llgl.cpp.
References gGLManager, glColorTableEXT, and LLGLManager::mHasPalettedTextures.
Referenced by LLGradientPaletteList::setHardwarePalette().
Definition at line 1357 of file llgl.cpp.
References glVertexAttribPointerARB, stop_glerror, and TRUE.
Referenced by LLVertexBufferAvatar::setupVertexBuffer().
Definition at line 1349 of file llgl.cpp.
References FALSE, glVertexAttribPointerARB, and stop_glerror.
Referenced by LLVertexBufferAvatar::setupVertexBuffer().
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().