diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-01 22:59:22 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-01 22:59:22 +0200 |
commit | d9c5a439d09211ec210195709d275596c6c3c9ba (patch) | |
tree | b536721f8ac5f42649345eeb836259bbf6a887e3 /src/math/matrix.h | |
parent | 9bd4ec03b272e7925b11c3efc2bd8460894ea589 (diff) | |
download | colobot-d9c5a439d09211ec210195709d275596c6c3c9ba.tar.gz colobot-d9c5a439d09211ec210195709d275596c6c3c9ba.tar.bz2 colobot-d9c5a439d09211ec210195709d275596c6c3c9ba.zip |
CGLDevice implementation
- extended Gfx::CDevice interface
- written OpenGL implementation in Gfx::CGLDevice
- rewrote color and light module
- added Gfx::VertexCol
- added array casts to Math::Vector, Math::Matrix and Gfx::Color
Diffstat (limited to 'src/math/matrix.h')
-rw-r--r-- | src/math/matrix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/matrix.h b/src/math/matrix.h index 9b29f46..0315a33 100644 --- a/src/math/matrix.h +++ b/src/math/matrix.h @@ -118,6 +118,12 @@ struct Matrix /* (4,4) */ m[15] = 1.0f; } + //! Returns the struct cast to \c float* array; use with care! + inline float* Array() + { + return (float*)this; + } + //! Transposes the matrix inline void Transpose() { |