diff options
author | Oz Linden <oz@lindenlab.com> | 2012-08-15 17:07:10 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-08-15 17:07:10 -0400 |
commit | 97106c2dea855e7a7a6378e0b6971d7a8226f1f6 (patch) | |
tree | b1cc26bc18f8ec28fba94e0f91035bfb73d96452 /indra/llprimitive/llprimitive.h | |
parent | 981190cf3151f436d370b841b1baa5a2a607b94d (diff) | |
parent | f2eef652063f7f2aee7296ff41cf5d34272cc12b (diff) |
merge changes for DRTVWR-194
Diffstat (limited to 'indra/llprimitive/llprimitive.h')
-rw-r--r-- | indra/llprimitive/llprimitive.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llprimitive/llprimitive.h b/indra/llprimitive/llprimitive.h index 998016f8f6..8dcaa8c740 100644 --- a/indra/llprimitive/llprimitive.h +++ b/indra/llprimitive/llprimitive.h @@ -421,7 +421,8 @@ public: inline BOOL isAvatar() const; inline BOOL isSittingAvatar() const; inline BOOL isSittingAvatarOnGround() const; - + inline bool hasBumpmap() const { return mNumBumpmapTEs > 0;} + void setFlags(U32 flags) { mMiscFlags = flags; } void addFlags(U32 flags) { mMiscFlags |= flags; } void removeFlags(U32 flags) { mMiscFlags &= ~flags; } @@ -435,6 +436,9 @@ public: inline static BOOL isPrimitive(const LLPCode pcode); inline static BOOL isApp(const LLPCode pcode); +private: + void updateNumBumpmap(const U8 index, const U8 bump); + protected: LLPCode mPrimitiveCode; // Primitive code LLVector3 mVelocity; // how fast are we moving? @@ -444,6 +448,7 @@ protected: LLPrimTextureList mTextureList; // list of texture GUIDs, scales, offsets U8 mMaterial; // Material code U8 mNumTEs; // # of faces on the primitve + U8 mNumBumpmapTEs; // number of bumpmap TEs. U32 mMiscFlags; // home for misc bools public: |