llgl.cpp File Reference

LLGL implementation. More...

#include "linden_common.h"
#include "llsys.h"
#include "llgl.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 gClothRipple = FALSE
BOOL gNoRender = FALSE
LLGLManager gGLManager
LLCPUInfo gSysCPU


Detailed Description

LLGL implementation.

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


Define Documentation

#define GLH_EXT_SINGLE_FILE

Definition at line 35 of file llgl.cpp.


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 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 = FALSE

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(), LLPanelDisplay3::refreshEnabledState(), LLPanelDisplay2::refreshEnabledState(), LLVolumeGeometryManager::registerFace(), LLTexLayerParamAlpha::render(), LLDrawPoolWater::render(), LLDrawPoolTerrain::render(), LLPipeline::renderGeom(), LLDrawPoolWater::renderShaderSimple(), LLVOSky::restoreGL(), LLViewerWindow::restoreGL(), send_stats(), set_palette(), LLImageGL::setMipFilterNearest(), LLShaderMgr::setShaders(), LLViewerWindow::stopGL(), LLDynamicTexture::updateAllInstances(), LLViewerImageList::updateImagesCreateTextures(), LLViewerImageList::updateImagesMediaStreams(), LLVOSky::updateSky(), and LLVOAvatar::updateTextures().

BOOL gNoRender = FALSE

Definition at line 76 of file llgl.cpp.

LLCPUInfo gSysCPU

Definition at line 65 of file llsys.cpp.


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