diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-30 15:09:46 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-30 15:09:46 +0400 |
commit | d38329b5aa6be472ea49c3a52b61875a772a6c9a (patch) | |
tree | 8f8ebf5a0438725b6d5398f1cb5d1f3c028ce668 /source/gameengine/Rasterizer/RAS_TexVert.cpp | |
parent | b97c77df2bafd7add01ea9dc8bfcad1e82714559 (diff) |
Added Python module for Lights.
Added attributes to the vertex class.
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_TexVert.cpp')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_TexVert.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/gameengine/Rasterizer/RAS_TexVert.cpp b/source/gameengine/Rasterizer/RAS_TexVert.cpp index add1a652d12..febe5dac5ee 100644 --- a/source/gameengine/Rasterizer/RAS_TexVert.cpp +++ b/source/gameengine/Rasterizer/RAS_TexVert.cpp @@ -60,6 +60,15 @@ const MT_Point3& RAS_TexVert::xyz() return g_pt3; } +void RAS_TexVert::SetRGBA(const MT_Vector4& rgba) +{ + unsigned char *colp = (unsigned char*) &m_rgba; + colp[0] = rgba[0]*255.0; + colp[1] = rgba[1]*255.0; + colp[2] = rgba[2]*255.0; + colp[3] = rgba[3]*255.0; +} + #ifndef RAS_TexVert_INLINE void RAS_TexVert::SetXYZ(const MT_Point3& xyz) |