summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolsky.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
committerJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
commit420b91db29485df39fd6e724e782c449158811cb (patch)
treeb471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/lldrawpoolsky.h
Print done when done.
Diffstat (limited to 'indra/newview/lldrawpoolsky.h')
-rw-r--r--indra/newview/lldrawpoolsky.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolsky.h b/indra/newview/lldrawpoolsky.h
new file mode 100644
index 0000000000..881ce6d542
--- /dev/null
+++ b/indra/newview/lldrawpoolsky.h
@@ -0,0 +1,42 @@
+/**
+ * @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 LLDrawPool
+{
+private:
+ LLSkyTex *mSkyTex;
+ LLHeavenBody *mHB[2]; // Sun and Moon
+
+public:
+ 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) { mHB[0] = sun; }
+ void setMoon(LLHeavenBody* moon) { mHB[1] = moon; }
+
+ void renderSkyCubeFace(U8 side);
+ void renderHeavenlyBody(U8 hb, const LLFace* face);
+ void renderSunHalo(const LLFace* face);
+
+ virtual S32 getMaterialAttribIndex() { return 0; }
+};
+
+#endif // LL_LLDRAWPOOLSKY_H