blob: 88d1ce03d0cf295798494867960234faaca2c58c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/**
* @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) { mHB[0] = sun; }
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
|