/** * @file lldrawpoolsky.h * @brief LLDrawPoolSky class definition * * Copyright (c) 2002-$CurrentYear$, Linden Research, Inc. * $License$ */ #ifndef LL_LLDRAWPOOLSKY_H #define LL_LLDRAWPOOLSKY_H #include "lldrawpool.h" class LLSkyTex; class LLHeavenBody; class LLDrawPoolSky : public LLFacePool { private: LLSkyTex *mSkyTex; LLHeavenBody *mHB[2]; // Sun and Moon public: enum { VERTEX_DATA_MASK = LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_TEXCOORD }; virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; } LLDrawPoolSky(); /*virtual*/ LLDrawPool *instancePool(); /*virtual*/ void prerender(); /*virtual*/ void render(S32 pass = 0); /*virtual*/ void renderForSelect(); void setSkyTex(LLSkyTex* const st) { mSkyTex = st; } void setSun(LLHeavenBody* sun_flag) { mHB[0] = sun_flag; } void setMoon(LLHeavenBody* moon) { mHB[1] = moon; } void renderSkyCubeFace(U8 side); void renderHeavenlyBody(U8 hb, LLFace* face); void renderSunHalo(LLFace* face); virtual S32 getMaterialAttribIndex() { return 0; } }; #endif // LL_LLDRAWPOOLSKY_H