diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-16 16:55:37 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-16 16:55:37 +0400 |
commit | 52a835a179d59f91da8cd2e3d5c087d1f9aec4e4 (patch) | |
tree | d3c8c2f3f3188b444992b98ca1e20268127a9308 /source/gameengine/Rasterizer/RAS_TexVert.h | |
parent | 512c269a16f23fcea4766359bd71658104727200 (diff) |
Inline accessor methods used by armature deformation.
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_TexVert.h')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_TexVert.h | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/source/gameengine/Rasterizer/RAS_TexVert.h b/source/gameengine/Rasterizer/RAS_TexVert.h index cd529e7d586..d5fa18744af 100644 --- a/source/gameengine/Rasterizer/RAS_TexVert.h +++ b/source/gameengine/Rasterizer/RAS_TexVert.h @@ -67,6 +67,35 @@ public: // leave multiline for debugging #ifdef RAS_TexVert_INLINE + void SetXYZ(const MT_Point3& xyz) + { + xyz.getValue(m_localxyz); + } + + + + void SetUV(const MT_Point2& uv) + { + uv.getValue(m_uv1); + } + + void SetRGBA(const unsigned int rgba) + { + m_rgba = rgba; + } + + void SetFlag(const short flag) + { + m_flag = flag; + } + + void SetNormal(const MT_Vector3& normal) + { + m_normal[0] = short(normal.x()*32767.0); + m_normal[1] = short(normal.y()*32767.0); + m_normal[2] = short(normal.z()*32767.0); + } + const float* getUV1 () const { return m_uv1; }; @@ -87,9 +116,6 @@ public: const short* getNormal() const; const float* getLocalXYZ() const; const unsigned int& getRGBA() const; -#endif - - const MT_Point3& xyz(); void SetXYZ(const MT_Point3& xyz); void SetUV(const MT_Point2& uv); @@ -97,6 +123,9 @@ public: void SetNormal(const MT_Vector3& normal); void SetFlag(const short flag); +#endif + const MT_Point3& xyz(); + // compare two vertices, and return TRUE if both are almost identical (they can be shared) bool closeTo(const RAS_TexVert* other); |