diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llvosurfacepatch.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llvosurfacepatch.h')
-rw-r--r-- | linden/indra/newview/llvosurfacepatch.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llvosurfacepatch.h b/linden/indra/newview/llvosurfacepatch.h index 024ccfd..52c11c9 100644 --- a/linden/indra/newview/llvosurfacepatch.h +++ b/linden/indra/newview/llvosurfacepatch.h | |||
@@ -42,6 +42,8 @@ class LLVector2; | |||
42 | class LLVOSurfacePatch : public LLStaticViewerObject | 42 | class LLVOSurfacePatch : public LLStaticViewerObject |
43 | { | 43 | { |
44 | public: | 44 | public: |
45 | static F32 sLODFactor; | ||
46 | |||
45 | enum | 47 | enum |
46 | { | 48 | { |
47 | VERTEX_DATA_MASK = (1 << LLVertexBuffer::TYPE_VERTEX) | | 49 | VERTEX_DATA_MASK = (1 << LLVertexBuffer::TYPE_VERTEX) | |
@@ -69,7 +71,7 @@ public: | |||
69 | LLStrider<LLColor4U> &colorsp, | 71 | LLStrider<LLColor4U> &colorsp, |
70 | LLStrider<LLVector2> &texCoords0p, | 72 | LLStrider<LLVector2> &texCoords0p, |
71 | LLStrider<LLVector2> &texCoords1p, | 73 | LLStrider<LLVector2> &texCoords1p, |
72 | LLStrider<U32> &indicesp); | 74 | LLStrider<U16> &indicesp); |
73 | 75 | ||
74 | /*virtual*/ void updateTextures(LLAgent &agent); | 76 | /*virtual*/ void updateTextures(LLAgent &agent); |
75 | /*virtual*/ void setPixelAreaAndAngle(LLAgent &agent); // generate accurate apparent angle and area | 77 | /*virtual*/ void setPixelAreaAndAngle(LLAgent &agent); // generate accurate apparent angle and area |
@@ -99,8 +101,6 @@ protected: | |||
99 | S32 mLastStride; | 101 | S32 mLastStride; |
100 | S32 mLastLength; | 102 | S32 mLastLength; |
101 | 103 | ||
102 | void calcColor(const LLVector3* vertex, const LLVector3* normal, LLColor4U* colorp); | ||
103 | BOOL updateShadows(BOOL use_shadow_factor = FALSE); | ||
104 | void getGeomSizesMain(const S32 stride, S32 &num_vertices, S32 &num_indices); | 104 | void getGeomSizesMain(const S32 stride, S32 &num_vertices, S32 &num_indices); |
105 | void getGeomSizesNorth(const S32 stride, const S32 north_stride, | 105 | void getGeomSizesNorth(const S32 stride, const S32 north_stride, |
106 | S32 &num_vertices, S32 &num_indices); | 106 | S32 &num_vertices, S32 &num_indices); |
@@ -113,7 +113,7 @@ protected: | |||
113 | LLStrider<LLColor4U> &colorsp, | 113 | LLStrider<LLColor4U> &colorsp, |
114 | LLStrider<LLVector2> &texCoords0p, | 114 | LLStrider<LLVector2> &texCoords0p, |
115 | LLStrider<LLVector2> &texCoords1p, | 115 | LLStrider<LLVector2> &texCoords1p, |
116 | LLStrider<U32> &indicesp, | 116 | LLStrider<U16> &indicesp, |
117 | U32 &index_offset); | 117 | U32 &index_offset); |
118 | void updateNorthGeometry(LLFace *facep, | 118 | void updateNorthGeometry(LLFace *facep, |
119 | LLStrider<LLVector3> &verticesp, | 119 | LLStrider<LLVector3> &verticesp, |
@@ -121,7 +121,7 @@ protected: | |||
121 | LLStrider<LLColor4U> &colorsp, | 121 | LLStrider<LLColor4U> &colorsp, |
122 | LLStrider<LLVector2> &texCoords0p, | 122 | LLStrider<LLVector2> &texCoords0p, |
123 | LLStrider<LLVector2> &texCoords1p, | 123 | LLStrider<LLVector2> &texCoords1p, |
124 | LLStrider<U32> &indicesp, | 124 | LLStrider<U16> &indicesp, |
125 | U32 &index_offset); | 125 | U32 &index_offset); |
126 | void updateEastGeometry(LLFace *facep, | 126 | void updateEastGeometry(LLFace *facep, |
127 | LLStrider<LLVector3> &verticesp, | 127 | LLStrider<LLVector3> &verticesp, |
@@ -129,7 +129,7 @@ protected: | |||
129 | LLStrider<LLColor4U> &colorsp, | 129 | LLStrider<LLColor4U> &colorsp, |
130 | LLStrider<LLVector2> &texCoords0p, | 130 | LLStrider<LLVector2> &texCoords0p, |
131 | LLStrider<LLVector2> &texCoords1p, | 131 | LLStrider<LLVector2> &texCoords1p, |
132 | LLStrider<U32> &indicesp, | 132 | LLStrider<U16> &indicesp, |
133 | U32 &index_offset); | 133 | U32 &index_offset); |
134 | }; | 134 | }; |
135 | 135 | ||