#include <llvostars.h>
Inheritance diagram for LLVOStars:
Public Member Functions | |
LLVOStars (const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) | |
BOOL | idleUpdate (LLAgent &agent, LLWorld &world, const F64 &time) |
LLDrawable * | createDrawable (LLPipeline *pipeline) |
BOOL | updateGeometry (LLDrawable *drawable) |
LLColor4 * | getStarColors () |
Protected Member Functions | |
~LLVOStars () | |
void | initStars () |
void | updateStarColors () |
BOOL | updateStarGeometry (LLDrawable *drawable) |
Protected Attributes | |
LLVector3 * | mStarVertices |
LLColor4 * | mStarColors |
F32 * | mStarIntensities |
LLFace * | mFace |
Definition at line 42 of file llvostars.h.
LLVOStars::LLVOStars | ( | const LLUUID & | id, | |
const LLPCode | pcode, | |||
LLViewerRegion * | regionp | |||
) |
LLVOStars::~LLVOStars | ( | ) | [protected] |
Definition at line 53 of file llvostars.cpp.
References mStarColors, mStarIntensities, mStarVertices, and NULL.
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] |
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().
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().