diff options
Diffstat (limited to 'linden/indra/newview/llvograss.h')
-rw-r--r-- | linden/indra/newview/llvograss.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linden/indra/newview/llvograss.h b/linden/indra/newview/llvograss.h index 25fa04c..c76ab93 100644 --- a/linden/indra/newview/llvograss.h +++ b/linden/indra/newview/llvograss.h | |||
@@ -37,6 +37,7 @@ | |||
37 | #include "lldarray.h" | 37 | #include "lldarray.h" |
38 | #include <map> | 38 | #include <map> |
39 | 39 | ||
40 | class LLSelectNode; | ||
40 | class LLSurfacePatch; | 41 | class LLSurfacePatch; |
41 | class LLViewerImage; | 42 | class LLViewerImage; |
42 | 43 | ||
@@ -76,6 +77,8 @@ public: | |||
76 | /*virtual*/ BOOL updateLOD(); | 77 | /*virtual*/ BOOL updateLOD(); |
77 | /*virtual*/ void setPixelAreaAndAngle(LLAgent &agent); // generate accurate apparent angle and area | 78 | /*virtual*/ void setPixelAreaAndAngle(LLAgent &agent); // generate accurate apparent angle and area |
78 | 79 | ||
80 | void generateSilhouette(LLSelectNode* nodep, const LLVector3& view_point); | ||
81 | |||
79 | void plantBlades(); | 82 | void plantBlades(); |
80 | 83 | ||
81 | /*virtual*/ BOOL isActive() const; // Whether this object needs to do an idleUpdate. | 84 | /*virtual*/ BOOL isActive() const; // Whether this object needs to do an idleUpdate. |
@@ -125,6 +128,12 @@ protected: | |||
125 | ~LLVOGrass(); | 128 | ~LLVOGrass(); |
126 | 129 | ||
127 | private: | 130 | private: |
131 | void generateSilhouetteVertices(std::vector<LLVector3> &vertices, | ||
132 | std::vector<LLVector3> &normals, | ||
133 | std::vector<S32> &segments, | ||
134 | const LLVector3& view_vec, | ||
135 | const LLMatrix4& mat, | ||
136 | const LLMatrix3& norm_mat); | ||
128 | void updateSpecies(); | 137 | void updateSpecies(); |
129 | F32 mLastHeight; // For cheap update hack | 138 | F32 mLastHeight; // For cheap update hack |
130 | S32 mNumBlades; | 139 | S32 mNumBlades; |