From 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:50 -0500 Subject: Second Life viewer sources 1.14.0.0 --- linden/indra/newview/lldrawpoolsky.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'linden/indra/newview/lldrawpoolsky.h') diff --git a/linden/indra/newview/lldrawpoolsky.h b/linden/indra/newview/lldrawpoolsky.h index d65fc9f..b9c1dda 100644 --- a/linden/indra/newview/lldrawpoolsky.h +++ b/linden/indra/newview/lldrawpoolsky.h @@ -33,13 +33,21 @@ class LLSkyTex; class LLHeavenBody; -class LLDrawPoolSky : public LLDrawPool +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(); @@ -52,8 +60,8 @@ public: void setMoon(LLHeavenBody* moon) { mHB[1] = moon; } void renderSkyCubeFace(U8 side); - void renderHeavenlyBody(U8 hb, const LLFace* face); - void renderSunHalo(const LLFace* face); + void renderHeavenlyBody(U8 hb, LLFace* face); + void renderSunHalo(LLFace* face); virtual S32 getMaterialAttribIndex() { return 0; } }; -- cgit v1.1