diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llcylinder.h | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llcylinder.h')
-rw-r--r-- | linden/indra/newview/llcylinder.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/linden/indra/newview/llcylinder.h b/linden/indra/newview/llcylinder.h index b9e0a0e..fbd1298 100644 --- a/linden/indra/newview/llcylinder.h +++ b/linden/indra/newview/llcylinder.h | |||
@@ -39,20 +39,15 @@ const S32 CYLINDER_FACES = 3; | |||
39 | 39 | ||
40 | class LLCylinder | 40 | class LLCylinder |
41 | { | 41 | { |
42 | protected: | ||
43 | U32 mDisplayListSide[CYLINDER_LEVELS_OF_DETAIL]; | ||
44 | U32 mDisplayListTop[CYLINDER_LEVELS_OF_DETAIL]; | ||
45 | U32 mDisplayListBottom[CYLINDER_LEVELS_OF_DETAIL]; | ||
46 | U32 mTriangleCount[CYLINDER_LEVELS_OF_DETAIL]; | ||
47 | |||
48 | public: | 42 | public: |
49 | void prerender(); | 43 | void prerender(); |
44 | void drawTop(S32 detail); | ||
45 | void drawSide(S32 detail); | ||
46 | void drawBottom(S32 detail); | ||
50 | void cleanupGL(); | 47 | void cleanupGL(); |
51 | 48 | ||
52 | void render(F32 pixel_area); | 49 | void render(F32 pixel_area); |
53 | void renderface(F32 pixel_area, S32 face); | 50 | void renderface(F32 pixel_area, S32 face); |
54 | |||
55 | U32 getTriangleCount(S32 level_of_detail) { return mTriangleCount[level_of_detail]; } | ||
56 | }; | 51 | }; |
57 | 52 | ||
58 | 53 | ||
@@ -65,20 +60,14 @@ const S32 CONE_LEVELS_OF_DETAIL = 4; | |||
65 | const S32 CONE_FACES = 2; | 60 | const S32 CONE_FACES = 2; |
66 | 61 | ||
67 | class LLCone | 62 | class LLCone |
68 | { | 63 | { |
69 | protected: | ||
70 | U32 mDisplayListSide[CONE_LEVELS_OF_DETAIL]; | ||
71 | U32 mDisplayListBottom[CONE_LEVELS_OF_DETAIL]; | ||
72 | U32 mTriangleCount[CONE_LEVELS_OF_DETAIL]; | ||
73 | |||
74 | public: | 64 | public: |
75 | void prerender(); | 65 | void prerender(); |
76 | void cleanupGL(); | 66 | void cleanupGL(); |
77 | 67 | void drawSide(S32 detail); | |
68 | void drawBottom(S32 detail); | ||
78 | void render(S32 level_of_detail); | 69 | void render(S32 level_of_detail); |
79 | void renderface(S32 level_of_detail, S32 face); | 70 | void renderface(S32 level_of_detail, S32 face); |
80 | |||
81 | U32 getTriangleCount(S32 level_of_detail) { return mTriangleCount[level_of_detail]; } | ||
82 | }; | 71 | }; |
83 | 72 | ||
84 | extern LLCylinder gCylinder; | 73 | extern LLCylinder gCylinder; |