llvostars.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLVOSTARS_H
00033 #define LL_LLVOSTARS_H
00034 
00035 #include "stdtypes.h"
00036 #include "v4color.h"
00037 #include "llviewerobject.h"
00038 #include "llframetimer.h"
00039 
00040 class LLFace;
00041 
00042 class LLVOStars : public LLStaticViewerObject
00043 {
00044 public:
00045         LLVOStars(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp);
00046 
00047         /*virtual*/ BOOL idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time);
00048         /*virtual*/ LLDrawable* createDrawable(LLPipeline *pipeline);
00049         /*virtual*/ BOOL updateGeometry(LLDrawable *drawable);
00050 
00051         LLColor4* getStarColors() { return mStarColors; }
00052 
00053 protected:
00054         ~LLVOStars();
00055 
00056         void initStars();
00057         void updateStarColors();
00058         BOOL updateStarGeometry(LLDrawable *drawable);
00059 
00060 protected:
00061         LLVector3                       *mStarVertices;                         // Star verticies
00062         LLColor4                        *mStarColors;                           // Star colors
00063         F32                                     *mStarIntensities;                      // Star intensities
00064         LLFace                          *mFace;
00065 };
00066 
00067 #endif

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