LLVOStars Class Reference

#include <llvostars.h>

Inheritance diagram for LLVOStars:

Inheritance graph
[legend]
Collaboration diagram for LLVOStars:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLVOStars (const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp)
BOOL idleUpdate (LLAgent &agent, LLWorld &world, const F64 &time)
LLDrawablecreateDrawable (LLPipeline *pipeline)
BOOL updateGeometry (LLDrawable *drawable)
LLColor4getStarColors ()

Protected Member Functions

 ~LLVOStars ()
void initStars ()
void updateStarColors ()
BOOL updateStarGeometry (LLDrawable *drawable)

Protected Attributes

LLVector3mStarVertices
LLColor4mStarColors
F32mStarIntensities
LLFacemFace

Detailed Description

Definition at line 42 of file llvostars.h.


Constructor & Destructor Documentation

LLVOStars::LLVOStars ( const LLUUID id,
const LLPCode  pcode,
LLViewerRegion regionp 
)

Definition at line 47 of file llvostars.cpp.

References initStars().

LLVOStars::~LLVOStars (  )  [protected]

Definition at line 53 of file llvostars.cpp.

References mStarColors, mStarIntensities, mStarVertices, and NULL.


Member Function Documentation

LLDrawable * LLVOStars::createDrawable ( LLPipeline pipeline  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 63 of file llvostars.cpp.

References LLPipeline::allocDrawable(), FALSE, LLPipeline::getPool(), gPipeline, LLViewerObject::mDrawable, mFace, NULL, NUMBER_OF_STARS, LLDrawPool::POOL_STARS, LLPipeline::RENDER_TYPE_STARS, and LLFace::setSize().

LLColor4* LLVOStars::getStarColors (  )  [inline]

Definition at line 51 of file llvostars.h.

References mStarColors.

BOOL LLVOStars::idleUpdate ( LLAgent agent,
LLWorld world,
const F64 time 
) [virtual]

Reimplemented from LLViewerObject.

Definition at line 77 of file llvostars.cpp.

References TRUE.

void LLVOStars::initStars (  )  [protected]

Definition at line 126 of file llvostars.cpp.

References LLColor4::clamp(), DISTANCE_TO_STARS, f, i, ll_frand(), llmin(), mStarColors, mStarIntensities, mStarVertices, LLColor4::mV, LLVector3::mV, LLVector3::normVec(), NUMBER_OF_STARS, VALPHA, VBLUE, VGREEN, VRED, VX, VY, and VZ.

Referenced by LLVOStars().

BOOL LLVOStars::updateGeometry ( LLDrawable drawable  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 82 of file llvostars.cpp.

References LLPipeline::sCompiles, TRUE, updateStarColors(), and updateStarGeometry().

void LLVOStars::updateStarColors (  )  [protected]

Definition at line 161 of file llvostars.cpp.

References f, gSky, ll_frand(), llclamp(), llmin(), mStarColors, mStarIntensities, mStarVertices, LLColor4::mV, LLSky::mVOSkyp, LLVector3::normVec(), NUMBER_OF_STARS, S32, VALPHA, and x.

Referenced by updateGeometry().

BOOL LLVOStars::updateStarGeometry ( LLDrawable drawable  )  [protected]

Definition at line 91 of file llvostars.cpp.

References LLFace::getGeomCount(), LLFace::getGeometryColors(), LLFace::getIndicesCount(), LLPointer< Type >::isNull(), mFace, mStarColors, mStarVertices, LLFace::mVertexBuffer, NUMBER_OF_STARS, S32, LLFace::setGeomIndex(), LLFace::setIndicesIndex(), TRUE, and LLDrawPoolStars::VERTEX_DATA_MASK.

Referenced by updateGeometry().


Member Data Documentation

LLFace* LLVOStars::mFace [protected]

Definition at line 64 of file llvostars.h.

Referenced by createDrawable(), and updateStarGeometry().

LLColor4* LLVOStars::mStarColors [protected]

Definition at line 62 of file llvostars.h.

Referenced by getStarColors(), initStars(), updateStarColors(), updateStarGeometry(), and ~LLVOStars().

F32* LLVOStars::mStarIntensities [protected]

Definition at line 63 of file llvostars.h.

Referenced by initStars(), updateStarColors(), and ~LLVOStars().

LLVector3* LLVOStars::mStarVertices [protected]

Definition at line 61 of file llvostars.h.

Referenced by initStars(), updateStarColors(), updateStarGeometry(), and ~LLVOStars().


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