llgl.cpp File Reference

LLGL implementation. More...

#include "linden_common.h"
#include "boost/tokenizer.hpp"
#include "llsys.h"
#include "llgl.h"
#include "llglimmediate.h"
#include "llerror.h"
#include "llquaternion.h"
#include "llmath.h"
#include "m4math.h"
#include "llstring.h"
#include "llglheaders.h"

Include dependency graph for llgl.cpp:

Go to the source code of this file.

Defines

#define GLH_EXT_SINGLE_FILE

Functions

void rotate_quat (LLQuaternion &rotation)
void flush_glerror ()
void assert_glerror ()
void clear_glerror ()
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 = FALSE
BOOL gClothRipple = FALSE
BOOL gNoRender = FALSE
LLMatrix4 gGLObliqueProjectionInverse
LLGLManager gGLManager
LLCPUInfo gSysCPU


Detailed Description

LLGL implementation.

LicenseInfo
firstyear=2001&license=viewergpl

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.cpp.


Define Documentation

#define GLH_EXT_SINGLE_FILE

Definition at line 35 of file llgl.cpp.


Function Documentation

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().

Here is the caller graph for this function:

void clear_glerror (  ) 

Definition at line 961 of file llgl.cpp.

void disable_binormals ( const S32  index  ) 

Definition at line 1386 of file llgl.cpp.

Referenced by LLDrawPoolAvatar::endSkinned().

Here is the caller graph for this function:

void disable_cloth_weights ( const S32  index  ) 

Definition at line 1404 of file llgl.cpp.

Referenced by LLDrawPoolAvatar::endSkinned().

Here is the caller graph for this function:

void disable_vertex_weighting ( const S32  index  ) 

Definition at line 1369 of file llgl.cpp.

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

Here is the caller graph for this function:

void enable_binormals ( const S32  index  ) 

Definition at line 1376 of file llgl.cpp.

Referenced by LLDrawPoolAvatar::beginSkinned().

Here is the caller graph for this function:

void enable_cloth_weights ( const S32  index  ) 

Definition at line 1397 of file llgl.cpp.

Referenced by LLDrawPoolAvatar::beginSkinned().

Here is the caller graph for this function:

void enable_vertex_weighting ( const S32  index  ) 

Definition at line 1362 of file llgl.cpp.

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

Here is the caller graph for this function:

void flush_glerror (  ) 

Definition at line 925 of file llgl.cpp.

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

Definition at line 1445 of file llgl.cpp.

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

Referenced by LLGLManager::initGL().

Here is the call graph for this function:

Here is the caller graph for this function:

void rotate_quat ( LLQuaternion rotation  ) 

Definition at line 918 of file llgl.cpp.

References LLQuaternion::getAngleAxis(), and RAD_TO_DEG.

Here is the call graph for this function:

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

Definition at line 1427 of file llgl.cpp.

References FALSE, and stop_glerror.

Referenced by LLVertexBufferAvatar::setupVertexBuffer().

Here is the caller graph for this function:

void set_palette ( U8 palette_data  ) 

Definition at line 1436 of file llgl.cpp.

References LLGLManager::mHasPalettedTextures.

Referenced by LLGradientPaletteList::setHardwarePalette().

Here is the caller graph for this function:

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

Definition at line 1419 of file llgl.cpp.

References stop_glerror, and TRUE.

Referenced by LLVertexBufferAvatar::setupVertexBuffer().

Here is the caller graph for this function:

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

Definition at line 1411 of file llgl.cpp.

References FALSE, and stop_glerror.

Referenced by LLVertexBufferAvatar::setupVertexBuffer().

Here is the caller graph for this function:


Variable Documentation

BOOL gClothRipple = FALSE

Definition at line 59 of file llgl.cpp.

BOOL gDebugGL = FALSE

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().

Definition at line 61 of file llgl.cpp.

BOOL gNoRender = FALSE

Definition at line 60 of file llgl.cpp.

Referenced by LLHUDText::addLine(), LLPipeline::addObject(), LLViewerWindow::alertCallback(), LLViewerWindow::alertXml(), LLViewerWindow::alertXmlEditText(), assert_glerror(), LLViewerImage::bind(), LLVOAvatar::buildCharacter(), LLHUDEffectLookAt::calcTargetPosition(), LLAppViewer::cleanupSavedSettings(), LLSurface::connectNeighbor(), LLImageGL::createGLTexture(), LLViewerImage::createTexture(), LLViewerImageList::decodeAllImages(), dialog_choose_gender_first_start(), dialog_refresh_all(), LLAppViewer::disconnectViewer(), display(), display_startup(), LLProgressView::draw(), LLViewerObjectList::findOrphans(), LLVOAvatar::getGround(), LLViewerImageList::getImageFromFile(), LLAgent::getRenderState(), handle_show_mean_events(), LLViewerWindow::handleDoubleClick(), LLShowFloater::handleEvent(), LLViewerWindow::handlePaint(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitObjectOrLandGlobalImmediate(), LLViewerWindow::hitUIElementAsync(), LLViewerWindow::hitUIElementImmediate(), LLAppViewer::idle(), idle_startup(), LLVOAvatar::idleUpdate(), LLViewerObject::idleUpdate(), LLViewerImageList::init(), LLAppViewer::init(), LLViewerObject::initVOClasses(), LLAppViewer::initWindow(), LLViewerRegion::LLViewerRegion(), LLViewerWindow::LLViewerWindow(), LLVOAvatar::LLVOAvatar(), LLWorld::LLWorld(), LLAppViewer::mainLoop(), mean_name_callback(), LLVOAvatar::needsRenderBeam(), LLViewerWindow::performPick(), LLViewerChatterBoxInvitation::post(), process_improved_im(), process_layer_data(), process_time_synch(), LLAgent::processAgentInitialWearablesUpdate(), LLVOAvatar::processAnimationStateChanges(), LLVOAvatar::processAvatarAppearance(), LLViewerParcelMgr::processParcelOverlay(), LLHUDManager::processViewerEffect(), LLSelectMgr::removeObjectFromSelections(), LLAgent::resetView(), LLViewerWindow::reshape(), LLAppViewer::saveFinalSnapshot(), send_stats(), LLAgent::setAFK(), LLFloater::setTitle(), LLViewerObjectList::shiftObjects(), LLFloaterBump::show(), LLInventoryView::showAgentInventory(), LLViewerObjectList::updateApparentAngles(), LLVOAvatar::updateCharacter(), LLViewerImageList::updateImages(), LLViewerImageList::updateImagesCreateTextures(), LLVOAvatar::updateMeshTextures(), LLVOAvatar::updateTextures(), LLWorld::updateVisibilities(), LLVOAvatar::updateVisualParams(), and LLViewerWindow::~LLViewerWindow().

Definition at line 65 of file llsys.cpp.


Generated on Fri May 16 08:35:56 2008 for SecondLife by  doxygen 1.5.5