LLFace Class Reference

#include <llface.h>

Collaboration diagram for LLFace:

Collaboration graph
[legend]
List of all members.

Public Types

 LIGHT = 0x0001
 GLOBAL = 0x0002
 FULLBRIGHT = 0x0004
 HUD_RENDER = 0x0008
 USE_FACE_COLOR = 0x0010
 TEXTURE_ANIM = 0x0020
enum  EMasks {
  LIGHT = 0x0001, GLOBAL = 0x0002, FULLBRIGHT = 0x0004, HUD_RENDER = 0x0008,
  USE_FACE_COLOR = 0x0010, TEXTURE_ANIM = 0x0020
}

Public Member Functions

 LLFace (LLDrawable *drawablep, LLViewerObject *objp)
 ~LLFace ()
const LLMatrix4getWorldMatrix () const
const LLMatrix4getRenderMatrix () const
U32 getIndicesCount () const
S32 getIndicesStart () const
S32 getGeomCount () const
S32 getGeomIndex () const
U32 getGeomStart () const
LLViewerImagegetTexture () const
void setTexture (LLViewerImage *tex)
LLXformMatrixgetXform () const
BOOL hasGeometry () const
LLVector3 getPositionAgent () const
U32 getState () const
void setState (U32 state)
void clearState (U32 state)
BOOL isState (U32 state) const
void setVirtualSize (F32 size)
void setPixelArea (F32 area)
F32 getVirtualSize () const
F32 getPixelArea () const
void bindTexture (S32 stage=0) const
void enableLights () const
void renderSetColor () const
S32 renderElements (const U32 *index_array) const
S32 renderIndexed ()
S32 renderIndexed (U32 mask)
S32 pushVertices (const U32 *index_array) const
void setWorldMatrix (const LLMatrix4 &mat)
const LLTextureEntrygetTextureEntry () const
LLFacePoolgetPool () const
U32 getPoolType () const
LLDrawablegetDrawable () const
LLViewerObjectgetViewerObject () const
S32 getLOD () const
LLVertexBuffergetVertexBuffer () const
void setPoolType (U32 type)
S32 getTEOffset ()
void setViewerObject (LLViewerObject *object)
void setPool (LLFacePool *pool, LLViewerImage *texturep)
void setDrawable (LLDrawable *drawable)
void setTEOffset (const S32 te_offset)
void setFaceColor (const LLColor4 &color)
void unsetFaceColor ()
const LLColor4getFaceColor () const
const LLColor4getRenderColor () const
S32 getGeometryVolume (const LLVolume &volume, S32 f, LLStrider< LLVector3 > &vertices, LLStrider< LLVector3 > &normals, LLStrider< LLVector2 > &texcoords, LLStrider< LLVector2 > &texcoords2, LLStrider< LLColor4U > &colors, LLStrider< U32 > &indices, const LLMatrix4 &mat_vert, const LLMatrix3 &mat_normal, U32 &index_offset)
S32 getGeometryAvatar (LLStrider< LLVector3 > &vertices, LLStrider< LLVector3 > &normals, LLStrider< LLVector3 > &binormals, LLStrider< LLVector2 > &texCoords, LLStrider< F32 > &vertex_weights, LLStrider< LLVector4 > &clothing_weights)
S32 getGeometryTerrain (LLStrider< LLVector3 > &vertices, LLStrider< LLVector3 > &normals, LLStrider< LLColor4U > &colors, LLStrider< LLVector2 > &texCoords0, LLStrider< LLVector2 > &texCoords1, LLStrider< U32 > &indices)
S32 getGeometry (LLStrider< LLVector3 > &vertices, LLStrider< LLVector3 > &normals, LLStrider< LLVector2 > &texCoords, LLStrider< U32 > &indices)
S32 getGeometryColors (LLStrider< LLVector3 > &vertices, LLStrider< LLVector3 > &normals, LLStrider< LLVector2 > &texCoords, LLStrider< LLColor4U > &colors, LLStrider< U32 > &indices)
S32 getVertices (LLStrider< LLVector3 > &vertices)
S32 getColors (LLStrider< LLColor4U > &colors)
S32 getIndices (LLStrider< U32 > &indices)
void setSize (const S32 numVertices, const S32 num_indices=0)
BOOL genVolumeBBoxes (const LLVolume &volume, S32 f, const LLMatrix4 &mat, const LLMatrix3 &inv_trans_mat, BOOL global_volume=FALSE)
void init (LLDrawable *drawablep, LLViewerObject *objp)
void destroy ()
void update ()
void updateCenterAgent ()
void renderSelectedUV (const S32 offset=0, const S32 count=0)
void renderForSelect (U32 data_mask=LLVertexBuffer::MAP_VERTEX|LLVertexBuffer::MAP_TEXCOORD)
void renderSelected (LLImageGL *image, const LLColor4 &color, const S32 offset=0, const S32 count=0)
F32 getKey () const
S32 getReferenceIndex () const
void setReferenceIndex (const S32 index)
BOOL verify (const U32 *indices_array=NULL) const
void printDebugInfo () const
void setGeomIndex (S32 idx)
void setIndicesIndex (S32 idx)

Static Public Member Functions

static void initClass ()

Public Attributes

LLVector3 mCenterLocal
LLVector3 mCenterAgent
LLVector3 mExtents [2]
LLVector2 mTexExtents [2]
F32 mDistance
F32 mAlphaFade
LLPointer< LLVertexBuffermVertexBuffer
LLPointer< LLVertexBuffermLastVertexBuffer
F32 mLastUpdateTime
LLMatrix4 mTextureMatrix

Protected Attributes

U32 mState
LLFacePoolmDrawPoolp
U32 mPoolType
LLColor4 mFaceColor
S32 mGeomCount
S32 mGeomIndex
U32 mIndicesCount
S32 mIndicesIndex
S32 mLastGeomCount
S32 mLastGeomIndex
U32 mLastIndicesCount
S32 mLastIndicesIndex
LLXformMatrixmXform
LLPointer< LLViewerImagemTexture
LLPointer< LLDrawablemDrawablep
LLPointer< LLViewerObjectmVObjp
S32 mTEOffset
S32 mReferenceIndex
F32 mVSize
F32 mPixelArea

Static Protected Attributes

static BOOL sSafeRenderSelect = TRUE

Friends

class LLGeometryManager
class LLVolumeGeometryManager

Classes

struct  CompareDistanceGreater
struct  CompareTexture
struct  CompareTextureAndGeomCount
struct  CompareTextureAndLOD
struct  CompareTextureAndTime

Detailed Description

Definition at line 58 of file llface.h.


Member Enumeration Documentation

enum LLFace::EMasks

Enumerator:
LIGHT 
GLOBAL 
FULLBRIGHT 
HUD_RENDER 
USE_FACE_COLOR 
TEXTURE_ANIM 

Definition at line 62 of file llface.h.


Constructor & Destructor Documentation

LLFace::LLFace ( LLDrawable drawablep,
LLViewerObject objp 
) [inline]

Definition at line 75 of file llface.h.

References init().

LLFace::~LLFace (  )  [inline]

Definition at line 76 of file llface.h.

References destroy().


Member Function Documentation

void LLFace::bindTexture ( S32  stage = 0  )  const [inline]

Definition at line 99 of file llface.h.

References LLViewerImage::bindTexture(), and mTexture.

void LLFace::clearState ( U32  state  )  [inline]

Definition at line 93 of file llface.h.

References mState.

Referenced by getGeometryVolume(), unsetFaceColor(), and LLVOPartGroup::updateGeometry().

void LLFace::destroy (  ) 

Definition at line 175 of file llface.cpp.

References mDrawablep, mDrawPoolp, mVObjp, NULL, and LLFacePool::removeFace().

Referenced by ~LLFace().

void LLFace::enableLights (  )  const

Definition at line 1388 of file llface.cpp.

References LLPipeline::enableLightsDynamic(), LLPipeline::enableLightsFullbright(), LLPipeline::enableLightsStatic(), f, FULLBRIGHT, LLVOVolume::getLightColor(), gPipeline, HUD_RENDER, isState(), LIGHT, LLDrawable::LIGHTING_BUILT, mDrawablep, LLPipeline::setAmbient(), and LLColor4::white.

BOOL LLFace::genVolumeBBoxes ( const LLVolume volume,
S32  f,
const LLMatrix4 mat,
const LLMatrix3 inv_trans_mat,
BOOL  global_volume = FALSE 
)

Definition at line 727 of file llface.cpp.

References face, LLMatrix3::getFwdRow(), LLMatrix3::getLeftRow(), LLVolume::getNumVolumeFaces(), LLMatrix3::getUpRow(), LLVolume::getVolumeFace(), i, j, mDrawablep, mExtents, mLastVertexBuffer, LLMemType::MTYPE_DRAWABLE, LLVector3::mV, mVertexBuffer, NULL, LLDrawable::REBUILD_POSITION, LLDrawable::REBUILD_VOLUME, LLMatrix3::setRows(), size, v, x, y, and z.

S32 LLFace::getColors ( LLStrider< LLColor4U > &  colors  )  [inline]

Definition at line 1522 of file llface.cpp.

References llassert, mGeomCount, mGeomIndex, and mVertexBuffer.

Referenced by getGeometryColors().

LLDrawable * LLFace::getDrawable (  )  const [inline]

Definition at line 113 of file llface.h.

References mDrawablep.

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

const LLColor4& LLFace::getFaceColor (  )  const [inline]

Definition at line 129 of file llface.h.

References mFaceColor.

S32 LLFace::getGeomCount (  )  const [inline]

Definition at line 82 of file llface.h.

References mGeomCount.

Referenced by LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), LLFace::CompareTextureAndGeomCount::operator()(), LLVolumeGeometryManager::rebuildGeom(), LLVolumeGeometryManager::registerFace(), LLVOSky::updateHeavenlyBodyGeometry(), LLVOStars::updateStarGeometry(), and LLVOVolume::writeCAL3D().

S32 LLFace::getGeometry ( LLStrider< LLVector3 > &  vertices,
LLStrider< LLVector3 > &  normals,
LLStrider< LLVector2 > &  texCoords,
LLStrider< U32 > &  indices 
)

Definition at line 317 of file llface.cpp.

References mGeomCount, mGeomIndex, mIndicesIndex, LLMemType::MTYPE_DRAWABLE, mVertexBuffer, LLPointer< Type >::notNull(), LLVertexBuffer::TYPE_NORMAL, and LLVertexBuffer::TYPE_TEXCOORD.

Referenced by getGeometryColors(), and LLVOSky::updateHeavenlyBodyGeometry().

S32 LLFace::getGeometryAvatar ( LLStrider< LLVector3 > &  vertices,
LLStrider< LLVector3 > &  normals,
LLStrider< LLVector3 > &  binormals,
LLStrider< LLVector2 > &  texCoords,
LLStrider< F32 > &  vertex_weights,
LLStrider< LLVector4 > &  clothing_weights 
)

Definition at line 263 of file llface.cpp.

References mGeomIndex, LLMemType::MTYPE_DRAWABLE, mVertexBuffer, and LLPointer< Type >::notNull().

S32 LLFace::getGeometryColors ( LLStrider< LLVector3 > &  vertices,
LLStrider< LLVector3 > &  normals,
LLStrider< LLVector2 > &  texCoords,
LLStrider< LLColor4U > &  colors,
LLStrider< U32 > &  indices 
)

Definition at line 349 of file llface.cpp.

References getColors(), getGeometry(), and S32.

Referenced by LLVOStars::updateStarGeometry().

S32 LLFace::getGeometryTerrain ( LLStrider< LLVector3 > &  vertices,
LLStrider< LLVector3 > &  normals,
LLStrider< LLColor4U > &  colors,
LLStrider< LLVector2 > &  texCoords0,
LLStrider< LLVector2 > &  texCoords1,
LLStrider< U32 > &  indices 
)

Definition at line 290 of file llface.cpp.

References mGeomIndex, mIndicesIndex, LLMemType::MTYPE_DRAWABLE, mVertexBuffer, and LLPointer< Type >::notNull().

BOOL LLFace::getGeometryVolume ( const LLVolume volume,
S32  f,
LLStrider< LLVector3 > &  vertices,
LLStrider< LLVector3 > &  normals,
LLStrider< LLVector2 > &  texcoords,
LLStrider< LLVector2 > &  texcoords2,
LLStrider< LLColor4U > &  colors,
LLStrider< U32 > &  indices,
const LLMatrix4 mat_vert,
const LLMatrix3 mat_normal,
U32 index_offset 
)

Definition at line 815 of file llface.cpp.

References BE_BRIGHTNESS, BE_DARKNESS, BE_NO_BUMP, clearState(), cylindricalProjection(), FALSE, LLTextureEntry::getBumpmap(), LLTextureEntry::getColor(), LLSky::getMoonDirection(), LLPipeline::getPoolTypeFromTE(), LLTextureEntry::getScale(), LLTextureEntry::getShiny(), LLSky::getSunDirection(), LLTextureEntry::getTexGen(), getTexture(), getTextureEntry(), LLVolume::getVolumeFace(), gFrameTimeSeconds, GLOBAL, gPipeline, gSky, i, isState(), llmax(), LLVolumeFace::mCenter, mDrawablep, mGeomCount, mGeomIndex, LLVolumeFace::mIndices, mIndicesCount, mIndicesIndex, mLastGeomCount, mLastGeomIndex, mLastIndicesCount, mLastIndicesIndex, mLastUpdateTime, mLastVertexBuffer, mode, LLVOVolume::mTexAnimMode, mTexExtents, mTexture, LLVector3::mV, LLColor4U::mV, mVertexBuffer, LLVolumeFace::mVertices, mVObjp, LLVector3::normVec(), LLPointer< Type >::notNull(), planarProjection(), LLDrawPool::POOL_BUMP, r, LLDrawable::REBUILD_ALL, LLDrawable::REBUILD_COLOR, LLDrawable::REBUILD_POSITION, LLDrawable::REBUILD_TCOORD, LLDrawable::REBUILD_VOLUME, S32, LLMatrix3::setRows(), setState(), LLVector2::setVec(), LLVector3::setVec(), sphericalProjection(), tut::tc(), LLTextureEntry::TEX_GEN_CYLINDRICAL, LLTextureEntry::TEX_GEN_DEFAULT, LLTextureEntry::TEX_GEN_PLANAR, LLTextureEntry::TEX_GEN_SPHERICAL, TEXTURE_ANIM, TRUE, VZ, and xform().

S32 LLFace::getGeomIndex (  )  const [inline]

Definition at line 83 of file llface.h.

References mGeomIndex.

Referenced by LLVOSurfacePatch::getGeometry(), LLVOClouds::getGeometry(), and LLVolumeGeometryManager::registerFace().

U32 LLFace::getGeomStart (  )  const [inline]

Definition at line 84 of file llface.h.

References mGeomIndex.

Referenced by printDebugInfo(), verify(), and LLVOVolume::writeCAL3D().

S32 LLFace::getIndices ( LLStrider< U32 > &  indices  ) 

Definition at line 1534 of file llface.cpp.

References llassert, mGeomIndex, mIndicesIndex, and mVertexBuffer.

U32 LLFace::getIndicesCount (  )  const [inline]

Definition at line 80 of file llface.h.

References mIndicesCount.

Referenced by LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), printDebugInfo(), LLVolumeGeometryManager::rebuildGeom(), LLVolumeGeometryManager::registerFace(), renderSelectedUV(), LLVOSky::updateHeavenlyBodyGeometry(), LLVOStars::updateStarGeometry(), verify(), and LLVOVolume::writeCAL3D().

S32 LLFace::getIndicesStart (  )  const [inline]

Definition at line 81 of file llface.h.

References mIndicesIndex.

Referenced by LLVolumeGeometryManager::registerFace(), renderSelectedUV(), and LLVOVolume::writeCAL3D().

F32 LLFace::getKey (  )  const [inline]

Definition at line 192 of file llface.h.

References mDistance.

S32 LLFace::getLOD (  )  const [inline]

Definition at line 115 of file llface.h.

References mVObjp, and LLPointer< Type >::notNull().

Referenced by LLFace::CompareTextureAndLOD::operator()().

F32 LLFace::getPixelArea (  )  const [inline]

Definition at line 98 of file llface.h.

References mPixelArea.

LLDrawPool * LLFace::getPool (  )  const [inline]

Definition at line 111 of file llface.h.

References mDrawPoolp.

Referenced by LLViewerJointMesh::drawShape(), printDebugInfo(), renderForSelect(), LLVOTextBubble::updateGeometry(), LLVOAvatar::updateLOD(), LLViewerJointMesh::uploadJointMatrices(), and LLVOVolume::writeCAL3D().

U32 LLFace::getPoolType (  )  const [inline]

Definition at line 112 of file llface.h.

References mPoolType.

Referenced by renderForSelect().

LLVector3 LLFace::getPositionAgent (  )  const

Definition at line 1541 of file llface.cpp.

References getRenderMatrix(), mCenterAgent, mCenterLocal, and mDrawablep.

S32 LLFace::getReferenceIndex (  )  const [inline]

Definition at line 194 of file llface.h.

References mReferenceIndex.

Referenced by LLFacePool::addFaceReference(), and LLFacePool::removeFaceReference().

const LLColor4 & LLFace::getRenderColor (  )  const

Definition at line 1409 of file llface.cpp.

References LLTextureEntry::getColor(), getTextureEntry(), isState(), mFaceColor, USE_FACE_COLOR, and LLColor4::white.

Referenced by LLVolumeGeometryManager::registerFace(), LLVOAvatar::renderFootShadows(), and renderSetColor().

const LLMatrix4 & LLFace::getRenderMatrix (  )  const

Definition at line 1458 of file llface.cpp.

References mDrawablep.

Referenced by getPositionAgent(), renderElements(), renderForSelect(), renderSelected(), renderSelectedUV(), and updateCenterAgent().

U32 LLFace::getState (  )  const [inline]

Definition at line 91 of file llface.h.

References mState.

Referenced by printDebugInfo().

S32 LLFace::getTEOffset (  )  [inline]

Definition at line 118 of file llface.h.

References mTEOffset.

LLViewerImage* LLFace::getTexture (  )  const [inline]

Definition at line 85 of file llface.h.

References mTexture.

Referenced by getGeometryVolume(), LLFace::CompareTextureAndTime::operator()(), LLFace::CompareTextureAndLOD::operator()(), LLFace::CompareTextureAndGeomCount::operator()(), LLFace::CompareTexture::operator()(), printDebugInfo(), LLVolumeGeometryManager::rebuildGeom(), LLVolumeGeometryManager::registerFace(), LLDrawPoolGlow::render(), renderForSelect(), and LLVOVolume::writeCAL3D().

const LLTextureEntry * LLFace::getTextureEntry (  )  const [inline]

Definition at line 109 of file llface.h.

References mTEOffset, and mVObjp.

Referenced by getGeometryVolume(), getRenderColor(), LLVolumeGeometryManager::rebuildGeom(), LLVolumeGeometryManager::registerFace(), renderForSelect(), and LLVOVolume::writeCAL3D().

LLVertexBuffer* LLFace::getVertexBuffer (  )  const [inline]

Definition at line 116 of file llface.h.

References mVertexBuffer.

S32 LLFace::getVertices ( LLStrider< LLVector3 > &  vertices  )  [inline]

Definition at line 1507 of file llface.cpp.

References mGeomCount, mGeomIndex, and mVertexBuffer.

LLViewerObject * LLFace::getViewerObject (  )  const [inline]

Definition at line 114 of file llface.h.

References mVObjp.

Referenced by printDebugInfo(), LLVolumeGeometryManager::registerFace(), and LLViewerObjectList::removeDrawable().

F32 LLFace::getVirtualSize (  )  const [inline]

Definition at line 97 of file llface.h.

References mVSize.

Referenced by LLVolumeGeometryManager::registerFace().

const LLMatrix4& LLFace::getWorldMatrix (  )  const [inline]

Definition at line 78 of file llface.h.

References mVObjp, and mXform.

LLXformMatrix* LLFace::getXform (  )  const [inline]

Definition at line 87 of file llface.h.

References mXform.

BOOL LLFace::hasGeometry (  )  const [inline]

Definition at line 88 of file llface.h.

References mGeomCount.

Referenced by LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), LLVOClouds::getGeometry(), and LLVolumeGeometryManager::rebuildGeom().

void LLFace::init ( LLDrawable drawablep,
LLViewerObject objp 
)

Definition at line 140 of file llface.cpp.

References gFrameTimeSeconds, GLOBAL, mAlphaFade, mDistance, mDrawPoolp, mFaceColor, mGeomCount, mGeomIndex, mIndicesCount, mIndicesIndex, mLastGeomCount, mLastGeomIndex, mLastIndicesCount, mLastIndicesIndex, mLastUpdateTime, mLastVertexBuffer, mPixelArea, mPoolType, mReferenceIndex, mState, mTEOffset, mTexture, mVertexBuffer, mVObjp, mVSize, NULL, and setDrawable().

Referenced by LLFace().

void LLFace::initClass (  )  [static]

Definition at line 189 of file llface.cpp.

Referenced by idle_startup().

BOOL LLFace::isState ( U32  state  )  const [inline]

Definition at line 94 of file llface.h.

References FALSE, mState, and TRUE.

Referenced by enableLights(), getGeometryVolume(), getRenderColor(), LLVolumeGeometryManager::registerFace(), renderElements(), renderForSelect(), renderSelected(), and renderSelectedUV().

void LLFace::printDebugInfo (  )  const

Definition at line 628 of file llface.cpp.

References LLImageGL::getComponents(), getDrawable(), getGeomStart(), getIndicesCount(), getPool(), getState(), getTexture(), getViewerObject(), i, llendl, llinfos, mGeomCount, mGeomIndex, LLViewerObject::mID, mIndicesCount, mIndicesIndex, LLFacePool::mReferences, LLPrimitive::pCodeToString(), LLFacePool::printDebugInfo(), and S32.

Referenced by verify().

S32 LLFace::pushVertices ( const U32 index_array  )  const

Definition at line 1439 of file llface.cpp.

References gGLManager, glDrawElements, glDrawRangeElements, mGeomCount, mGeomIndex, LLGLManager::mGLMaxIndexRange, LLGLManager::mGLMaxVertexRange, mIndicesCount, and mIndicesIndex.

Referenced by renderElements().

S32 LLFace::renderElements ( const U32 index_array  )  const

Definition at line 1463 of file llface.cpp.

References getRenderMatrix(), glMultMatrixf, GLOBAL, glPopMatrix, isState(), pushVertices(), and S32.

Referenced by renderIndexed().

void LLFace::renderForSelect ( U32  data_mask = LLVertexBuffer::MAP_VERTEX|LLVertexBuffer::MAP_TEXCOORD  ) 

Definition at line 373 of file llface.cpp.

References LLViewerImage::bind(), LLGLState::checkClientArrays(), f, getPool(), getPoolType(), getRenderMatrix(), getTexture(), getTextureEntry(), glColor4ubv, glDrawArrays, glDrawElements, glMultMatrixf, GLOBAL, glPopMatrix, gPickFaces, LLPointer< Type >::isNull(), isState(), mDrawablep, mGeomCount, mGeomIndex, mIndicesCount, mIndicesIndex, mTEOffset, LLColor4U::mV, mVertexBuffer, mVObjp, LLDrawPool::POOL_ALPHA, S32, LLImageGL::unbindTexture(), and VALPHA.

Referenced by LLPipeline::renderForSelect().

S32 LLFace::renderIndexed ( U32  mask  ) 

Definition at line 1492 of file llface.cpp.

References LLPointer< Type >::isNull(), mVertexBuffer, and renderElements().

S32 LLFace::renderIndexed (  ) 

Definition at line 1482 of file llface.cpp.

References LLDrawPool::getVertexDataMask(), LLPointer< Type >::isNull(), mDrawablep, mDrawPoolp, mGeomIndex, and NULL.

Referenced by LLDrawPoolGlow::render(), LLDrawPoolGround::render(), and LLVOAvatar::renderFootShadows().

void LLFace::renderSelected ( LLImageGL image,
const LLColor4 color,
const S32  offset = 0,
const S32  count = 0 
)

Definition at line 451 of file llface.cpp.

References LLViewerImage::bindTexture(), LLGLState::checkClientArrays(), getRenderMatrix(), glColor4fv, glDrawElements, glMultMatrixf, GLOBAL, glPopMatrix, LLPointer< Type >::isNull(), isState(), LLVertexBuffer::MAP_NORMAL, LLVertexBuffer::MAP_TEXCOORD, LLVertexBuffer::MAP_VERTEX, mDrawablep, mGeomCount, mGeomIndex, mIndicesCount, mIndicesIndex, LLColor4::mV, and mVertexBuffer.

void LLFace::renderSelectedUV ( const S32  offset = 0,
const S32  count = 0 
)

Definition at line 500 of file llface.cpp.

References bias(), LLViewerImage::bindTexture(), f, factor, LLViewerImageList::getImage(), getIndicesCount(), getIndicesStart(), getRenderMatrix(), LLControlGroup::getString(), gImageList, glBegin, glBlendFunc, glColor4fv, glDisable, glDrawArrays, glDrawElements, glEnable, glEnd, glMultMatrixf, GLOBAL, glPopMatrix, gViewerArt, i, isState(), llassert, llendl, llerrs, mDrawPoolp, mGeomCount, mGeomIndex, mIndicesCount, LLVector3::mV, S32, sSafeRenderSelect, tut::tc(), texture, TRUE, and LLColor4::white.

Referenced by LLPipeline::renderFaceForUVSelect().

void LLFace::renderSetColor (  )  const

Definition at line 1422 of file llface.cpp.

References LLDrawPool::getMaterialAttribIndex(), getRenderColor(), glColor4fv, mDrawPoolp, LLColor4::mV, LLDrawPool::mVertexShaderLevel, and LLFacePool::LLOverrideFaceColor::sOverrideFaceColor.

void LLFace::setDrawable ( LLDrawable drawable  ) 

Definition at line 249 of file llface.cpp.

References mDrawablep, LLDrawable::mXform, and mXform.

Referenced by init().

void LLFace::setFaceColor ( const LLColor4 color  ) 

Definition at line 238 of file llface.cpp.

References mFaceColor, setState(), and USE_FACE_COLOR.

Referenced by LLVOClouds::getGeometry(), and LLVOPartGroup::updateGeometry().

void LLFace::setGeomIndex ( S32  idx  )  [inline]

Definition at line 200 of file llface.h.

References mGeomIndex.

Referenced by LLVOSky::updateHeavenlyBodyGeometry(), and LLVOStars::updateStarGeometry().

void LLFace::setIndicesIndex ( S32  idx  )  [inline]

Definition at line 201 of file llface.h.

References mIndicesIndex.

Referenced by LLVOSky::updateHeavenlyBodyGeometry(), and LLVOStars::updateStarGeometry().

void LLFace::setPixelArea ( F32  area  )  [inline]

Definition at line 96 of file llface.h.

References mPixelArea.

void LLFace::setPool ( LLFacePool pool,
LLViewerImage texturep 
)

Definition at line 198 of file llface.cpp.

References LLFacePool::addFace(), gPipeline, llendl, llerrs, LLPipeline::markRebuild(), mDrawablep, mDrawPoolp, mGeomIndex, mTexture, LLMemType::MTYPE_DRAWABLE, LLDrawable::REBUILD_ALL, and TRUE.

void LLFace::setPoolType ( U32  type  )  [inline]

Definition at line 117 of file llface.h.

References mPoolType.

Referenced by LLVolumeGeometryManager::rebuildGeom().

void LLFace::setReferenceIndex ( const S32  index  )  [inline]

Definition at line 195 of file llface.h.

References mReferenceIndex.

Referenced by LLFacePool::addFaceReference(), and LLFacePool::removeFaceReference().

void LLFace::setSize ( const S32  numVertices,
const S32  num_indices = 0 
)

Definition at line 255 of file llface.cpp.

References mGeomCount, and mIndicesCount.

Referenced by LLVOTree::createDrawable(), LLVOStars::createDrawable(), LLVOVolume::updateFaceSize(), LLVOSurfacePatch::updateFaceSize(), LLVOPartGroup::updateGeometry(), LLVOClouds::updateGeometry(), LLVOSky::updateHeavenlyBodyGeometry(), and LLVOAvatar::updateShadowFaces().

void LLFace::setState ( U32  state  )  [inline]

Definition at line 92 of file llface.h.

References mState.

Referenced by getGeometryVolume(), LLVolumeGeometryManager::rebuildGeom(), setFaceColor(), LLViewerJointAttachment::setupDrawable(), and LLVOPartGroup::updateGeometry().

void LLFace::setTEOffset ( const S32  te_offset  ) 

Definition at line 232 of file llface.cpp.

References mTEOffset.

Referenced by LLVOPartGroup::updateGeometry(), and LLVOClouds::updateGeometry().

void LLFace::setTexture ( LLViewerImage tex  )  [inline]

Definition at line 86 of file llface.h.

References mTexture.

Referenced by LLVOPartGroup::updateGeometry(), and LLVOClouds::updateGeometry().

void LLFace::setViewerObject ( LLViewerObject object  ) 

Definition at line 1383 of file llface.cpp.

References mVObjp.

Referenced by LLVOPartGroup::updateGeometry().

void LLFace::setVirtualSize ( F32  size  )  [inline]

Definition at line 95 of file llface.h.

References mVSize.

Referenced by LLVOPartGroup::updateGeometry().

void LLFace::setWorldMatrix ( const LLMatrix4 mat  ) 

Definition at line 193 of file llface.cpp.

References llendl, and llerrs.

void LLFace::unsetFaceColor (  ) 

Definition at line 244 of file llface.cpp.

References clearState(), and USE_FACE_COLOR.

void LLFace::update (  ) 

void LLFace::updateCenterAgent (  ) 

Definition at line 361 of file llface.cpp.

References getRenderMatrix(), mCenterAgent, mCenterLocal, and mDrawablep.

Referenced by LLDrawable::moveUpdatePipeline().

BOOL LLFace::verify ( const U32 indices_array = NULL  )  const

Definition at line 1328 of file llface.cpp.

References FALSE, getGeomStart(), getIndicesCount(), i, LL_MAX_INDICES_COUNT, llendl, llinfos, llwarns, mGeomCount, mGeomIndex, mIndicesIndex, mVertexBuffer, printDebugInfo(), S32, and TRUE.


Friends And Related Function Documentation

friend class LLGeometryManager [friend]

Definition at line 218 of file llface.h.

friend class LLVolumeGeometryManager [friend]

Definition at line 219 of file llface.h.


Member Data Documentation

F32 LLFace::mAlphaFade

Definition at line 211 of file llface.h.

Referenced by init().

LLVector3 LLFace::mCenterAgent

Definition at line 207 of file llface.h.

Referenced by LLDrawPoolClouds::enqueue(), getPositionAgent(), LLDrawable::shiftPos(), updateCenterAgent(), LLVOSurfacePatch::updateEastGeometry(), LLVOSurfacePatch::updateMainGeometry(), and LLVOSurfacePatch::updateNorthGeometry().

LLVector3 LLFace::mCenterLocal

Definition at line 206 of file llface.h.

Referenced by LLParticlePartition::addGeometryCount(), LLVOClouds::getGeometry(), getPositionAgent(), renderPoints(), updateCenterAgent(), LLVOPartGroup::updateGeometry(), and LLVOClouds::updateGeometry().

F32 LLFace::mDistance

Definition at line 210 of file llface.h.

Referenced by LLParticlePartition::addGeometryCount(), LLDrawPoolClouds::enqueue(), getKey(), init(), and LLFace::CompareDistanceGreater::operator()().

LLPointer<LLDrawable> LLFace::mDrawablep [protected]

Definition at line 239 of file llface.h.

Referenced by destroy(), enableLights(), genVolumeBBoxes(), getDrawable(), getGeometryVolume(), getPositionAgent(), getRenderMatrix(), renderForSelect(), renderIndexed(), renderSelected(), setDrawable(), setPool(), and updateCenterAgent().

LLFacePool* LLFace::mDrawPoolp [protected]

Definition at line 222 of file llface.h.

Referenced by destroy(), getPool(), init(), renderIndexed(), renderSelectedUV(), renderSetColor(), and setPool().

LLVector3 LLFace::mExtents[2]

Definition at line 208 of file llface.h.

Referenced by genVolumeBBoxes().

LLColor4 LLFace::mFaceColor [protected]

Definition at line 224 of file llface.h.

Referenced by getFaceColor(), getRenderColor(), init(), and setFaceColor().

S32 LLFace::mGeomCount [protected]

Definition at line 226 of file llface.h.

Referenced by getColors(), getGeomCount(), getGeometry(), getGeometryVolume(), getVertices(), hasGeometry(), init(), printDebugInfo(), pushVertices(), renderForSelect(), renderSelected(), renderSelectedUV(), setSize(), and verify().

S32 LLFace::mGeomIndex [protected]

Definition at line 227 of file llface.h.

Referenced by getColors(), getGeometry(), getGeometryAvatar(), getGeometryTerrain(), getGeometryVolume(), getGeomIndex(), getGeomStart(), getIndices(), getVertices(), init(), printDebugInfo(), pushVertices(), renderForSelect(), renderIndexed(), renderSelected(), renderSelectedUV(), setGeomIndex(), setPool(), and verify().

U32 LLFace::mIndicesCount [protected]

Definition at line 228 of file llface.h.

Referenced by getGeometryVolume(), getIndicesCount(), init(), printDebugInfo(), pushVertices(), renderForSelect(), renderSelected(), renderSelectedUV(), and setSize().

S32 LLFace::mIndicesIndex [protected]

Definition at line 229 of file llface.h.

Referenced by getGeometry(), getGeometryTerrain(), getGeometryVolume(), getIndices(), getIndicesStart(), init(), printDebugInfo(), pushVertices(), renderForSelect(), renderSelected(), setIndicesIndex(), and verify().

S32 LLFace::mLastGeomCount [protected]

Definition at line 232 of file llface.h.

Referenced by getGeometryVolume(), and init().

S32 LLFace::mLastGeomIndex [protected]

Definition at line 233 of file llface.h.

Referenced by getGeometryVolume(), and init().

U32 LLFace::mLastIndicesCount [protected]

Definition at line 234 of file llface.h.

Referenced by getGeometryVolume(), and init().

S32 LLFace::mLastIndicesIndex [protected]

Definition at line 235 of file llface.h.

Referenced by getGeometryVolume(), and init().

F32 LLFace::mLastUpdateTime

Definition at line 214 of file llface.h.

Referenced by getGeometryVolume(), init(), LLFace::CompareTextureAndTime::operator()(), and LLVolumeGeometryManager::rebuildGeom().

LLPointer<LLVertexBuffer> LLFace::mLastVertexBuffer

Definition at line 213 of file llface.h.

Referenced by LLGeometryManager::addGeometryCount(), genVolumeBBoxes(), getGeometryVolume(), init(), and LLVolumeGeometryManager::rebuildGeom().

F32 LLFace::mPixelArea [protected]

Definition at line 245 of file llface.h.

Referenced by LLGeometryManager::addGeometryCount(), getPixelArea(), init(), LLVolumeGeometryManager::rebuildGeom(), and setPixelArea().

U32 LLFace::mPoolType [protected]

Definition at line 223 of file llface.h.

Referenced by getPoolType(), init(), and setPoolType().

S32 LLFace::mReferenceIndex [protected]

Definition at line 243 of file llface.h.

Referenced by getReferenceIndex(), init(), and setReferenceIndex().

U32 LLFace::mState [protected]

Definition at line 221 of file llface.h.

Referenced by clearState(), getState(), init(), isState(), and setState().

S32 LLFace::mTEOffset [protected]

Definition at line 241 of file llface.h.

Referenced by getTEOffset(), getTextureEntry(), init(), renderForSelect(), and setTEOffset().

LLVector2 LLFace::mTexExtents[2]

Definition at line 209 of file llface.h.

Referenced by getGeometryVolume().

LLPointer<LLViewerImage> LLFace::mTexture [protected]

Definition at line 238 of file llface.h.

Referenced by bindTexture(), getGeometryVolume(), getTexture(), init(), setPool(), and setTexture().

LLMatrix4 LLFace::mTextureMatrix

Definition at line 215 of file llface.h.

Referenced by LLVolumeGeometryManager::registerFace().

LLPointer<LLVertexBuffer> LLFace::mVertexBuffer

Definition at line 212 of file llface.h.

Referenced by LLGeometryManager::addGeometryCount(), LLViewerJointMesh::drawShape(), genVolumeBBoxes(), getColors(), getGeometry(), getGeometryAvatar(), getGeometryTerrain(), getGeometryVolume(), getIndices(), getVertexBuffer(), getVertices(), init(), LLVolumeGeometryManager::rebuildGeom(), LLVolumeGeometryManager::registerFace(), renderForSelect(), renderIndexed(), renderSelected(), LLPipeline::resetVertexBuffers(), LLViewerJointMesh::updateGeometry(), LLViewerJointMesh::updateGeometryOriginal(), LLVOSky::updateHeavenlyBodyGeometry(), LLVOAvatar::updateLOD(), LLVOStars::updateStarGeometry(), and verify().

LLPointer<LLViewerObject> LLFace::mVObjp [protected]

Definition at line 240 of file llface.h.

Referenced by destroy(), getGeometryVolume(), getLOD(), getTextureEntry(), getViewerObject(), getWorldMatrix(), init(), renderForSelect(), and setViewerObject().

F32 LLFace::mVSize [protected]

Definition at line 244 of file llface.h.

Referenced by getVirtualSize(), init(), and setVirtualSize().

LLXformMatrix* LLFace::mXform [protected]

Definition at line 237 of file llface.h.

Referenced by getWorldMatrix(), getXform(), and setDrawable().

BOOL LLFace::sSafeRenderSelect = TRUE [static, protected]

Definition at line 248 of file llface.h.

Referenced by renderSelectedUV().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:16 2010 for Second Life Viewer by  doxygen 1.4.7