lldrawpoolavatar.cpp File Reference

LLDrawPoolAvatar class implementation. More...

#include "llviewerprecompiledheaders.h"
#include "lldrawpoolavatar.h"
#include "llvoavatar.h"
#include "m3math.h"
#include "llagent.h"
#include "lldrawable.h"
#include "llface.h"
#include "llsky.h"
#include "llviewercamera.h"
#include "llviewerregion.h"
#include "noise.h"
#include "pipeline.h"
#include "llglslshader.h"

Include dependency graph for lldrawpoolavatar.cpp:

Go to the source code of this file.

Variables

static U32 sDataMask = LLDrawPoolAvatar::VERTEX_DATA_MASK
static U32 sBufferUsage = GL_STREAM_DRAW_ARB
static U32 sShaderLevel = 0
static LLGLSLShadersVertexProgram = NULL
F32 gFrameDTClamped
BOOL gUseGLPick
F32 CLOTHING_GRAVITY_EFFECT = 0.7f
F32 CLOTHING_ACCEL_FORCE_FACTOR = 0.2f
const S32 NUM_TEST_AVATARS = 30
const S32 MIN_PIXEL_AREA_2_PASS_SKINNING = 500000000
S32 AVATAR_OFFSET_POS = 0
S32 AVATAR_OFFSET_NORMAL = 16
S32 AVATAR_OFFSET_TEX0 = 32
S32 AVATAR_OFFSET_TEX1 = 40
S32 AVATAR_VERTEX_BYTES = 48
BOOL gAvatarEmbossBumpMap = FALSE
static BOOL sRenderingSkinned = FALSE
BOOL gRenderAvatar = TRUE


Detailed Description

LLDrawPoolAvatar class implementation.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-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 lldrawpoolavatar.cpp.


Variable Documentation

S32 AVATAR_OFFSET_NORMAL = 16

Definition at line 80 of file lldrawpoolavatar.cpp.

S32 AVATAR_OFFSET_POS = 0

Definition at line 79 of file lldrawpoolavatar.cpp.

S32 AVATAR_OFFSET_TEX0 = 32

Definition at line 81 of file lldrawpoolavatar.cpp.

S32 AVATAR_OFFSET_TEX1 = 40

Definition at line 82 of file lldrawpoolavatar.cpp.

S32 AVATAR_VERTEX_BYTES = 48

Definition at line 83 of file lldrawpoolavatar.cpp.

F32 CLOTHING_ACCEL_FORCE_FACTOR = 0.2f

Definition at line 58 of file lldrawpoolavatar.cpp.

F32 CLOTHING_GRAVITY_EFFECT = 0.7f

Definition at line 57 of file lldrawpoolavatar.cpp.

Referenced by LLDrawPoolAvatar::renderAvatars().

BOOL gAvatarEmbossBumpMap = FALSE

Definition at line 86 of file lldrawpoolavatar.cpp.

F32 gFrameDTClamped

Definition at line 3404 of file viewer.cpp.

BOOL gRenderAvatar = TRUE

Definition at line 104 of file lldrawpoolavatar.cpp.

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

BOOL gUseGLPick

Definition at line 224 of file llviewerwindow.cpp.

Referenced by LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitUIElementAsync(), and LLDrawPoolAvatar::renderForSelect().

const S32 MIN_PIXEL_AREA_2_PASS_SKINNING = 500000000

Definition at line 60 of file lldrawpoolavatar.cpp.

const S32 NUM_TEST_AVATARS = 30

Definition at line 59 of file lldrawpoolavatar.cpp.

Referenced by LLDrawPoolAvatar::renderAvatars().

U32 sBufferUsage = GL_STREAM_DRAW_ARB [static]

Definition at line 50 of file lldrawpoolavatar.cpp.

Referenced by LLDrawPoolAvatar::prerender().

U32 sDataMask = LLDrawPoolAvatar::VERTEX_DATA_MASK [static]

Definition at line 49 of file lldrawpoolavatar.cpp.

BOOL sRenderingSkinned = FALSE [static]

Definition at line 87 of file lldrawpoolavatar.cpp.

Referenced by LLDrawPoolAvatar::beginSkinned(), LLDrawPoolAvatar::endSkinned(), LLDrawPoolAvatar::renderForSelect(), and LLVertexBufferAvatar::setupVertexBuffer().

U32 sShaderLevel = 0 [static]

Definition at line 51 of file lldrawpoolavatar.cpp.

Referenced by LLDrawPoolAvatar::beginRigid(), LLDrawPoolAvatar::beginSkinned(), LLDrawPoolAvatar::endRigid(), LLDrawPoolAvatar::endSkinned(), LLDrawPoolAvatar::getVertexShaderLevel(), LLDrawPoolAvatar::prerender(), LLDrawPoolAvatar::renderAvatars(), LLDrawPoolAvatar::renderForSelect(), and LLVertexBufferAvatar::setupVertexBuffer().

LLGLSLShader* sVertexProgram = NULL [static]

Definition at line 52 of file lldrawpoolavatar.cpp.

Referenced by LLDrawPoolAvatar::beginRigid(), LLDrawPoolAvatar::beginSkinned(), LLDrawPoolAvatar::endSkinned(), LLDrawPoolAvatar::renderAvatars(), LLDrawPoolAvatar::renderForSelect(), and LLVertexBufferAvatar::setupVertexBuffer().


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