diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llrendersphere.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/linden/indra/newview/llrendersphere.h b/linden/indra/newview/llrendersphere.h new file mode 100644 index 0000000..ace57e4 --- /dev/null +++ b/linden/indra/newview/llrendersphere.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /** | ||
2 | * @file llrendersphere.h | ||
3 | * @brief interface for the LLRenderSphere class. | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2001&license=internal$ | ||
6 | * | ||
7 | * Copyright (c) 2001-2008, Linden Research, Inc. | ||
8 | * | ||
9 | * The following source code is PROPRIETARY AND CONFIDENTIAL. Use of | ||
10 | * this source code is governed by the Linden Lab Source Code Disclosure | ||
11 | * Agreement ("Agreement") previously entered between you and Linden | ||
12 | * Lab. By accessing, using, copying, modifying or distributing this | ||
13 | * software, you acknowledge that you have been informed of your | ||
14 | * obligations under the Agreement and agree to abide by those obligations. | ||
15 | * | ||
16 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
17 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
18 | * COMPLETENESS OR PERFORMANCE. | ||
19 | * $/LicenseInfo$ | ||
20 | */ | ||
21 | |||
22 | #ifndef LL_LLRENDERSPHERE_H | ||
23 | #define LL_LLRENDERSPHERE_H | ||
24 | |||
25 | #include "llmath.h" | ||
26 | #include "v3math.h" | ||
27 | #include "v4math.h" | ||
28 | #include "m3math.h" | ||
29 | #include "m4math.h" | ||
30 | #include "v4color.h" | ||
31 | #include "llgl.h" | ||
32 | |||
33 | void lat2xyz(LLVector3 * result, F32 lat, F32 lon); // utility routine | ||
34 | |||
35 | class LLRenderSphere | ||
36 | { | ||
37 | public: | ||
38 | LLGLuint mDList[5]; | ||
39 | |||
40 | void prerender(); | ||
41 | void cleanupGL(); | ||
42 | void render(F32 pixel_area); // of a box of size 1.0 at that position | ||
43 | void render(); // render at highest LOD | ||
44 | }; | ||
45 | |||
46 | extern LLRenderSphere gSphere; | ||
47 | #endif | ||