GameKit  0.0.1a
C++ gamedev tools
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
gk::Transform Class Reference

#include <Transform.hpp>

Public Member Functions

 Transform ()=default
 
 Transform (const glm::mat4 &matrix)
 
Transformcombine (const Transform &transform)
 
Transformtranslate (float x, float y, float z=0)
 
Transformtranslate (const Vector3f &offset)
 
Transformrotate (float angle)
 
Transformrotate (float angle, const Vector3f &axis)
 
Transformscale (float scaleX, float scaleY, float scaleZ=1)
 
Transformscale (const Vector3f &factors)
 
const float * getRawMatrix () const
 
const glm::mat4 getMatrix () const
 

Static Public Attributes

static const Transform Identity
 

Private Attributes

glm::mat4 m_matrix {1}
 

Detailed Description

Definition at line 28 of file Transform.hpp.

Constructor & Destructor Documentation

§ Transform() [1/2]

gk::Transform::Transform ( )
default

§ Transform() [2/2]

gk::Transform::Transform ( const glm::mat4 &  matrix)
inline

Definition at line 31 of file Transform.hpp.

Member Function Documentation

§ combine()

Transform & gk::Transform::combine ( const Transform transform)

Definition at line 23 of file Transform.cpp.

§ getMatrix()

const glm::mat4 gk::Transform::getMatrix ( ) const
inline

Definition at line 45 of file Transform.hpp.

§ getRawMatrix()

const float* gk::Transform::getRawMatrix ( ) const
inline

Definition at line 44 of file Transform.hpp.

§ rotate() [1/2]

Transform& gk::Transform::rotate ( float  angle)
inline

Definition at line 38 of file Transform.hpp.

§ rotate() [2/2]

Transform & gk::Transform::rotate ( float  angle,
const Vector3f axis 
)

Definition at line 33 of file Transform.cpp.

§ scale() [1/2]

Transform & gk::Transform::scale ( float  scaleX,
float  scaleY,
float  scaleZ = 1 
)

Definition at line 39 of file Transform.cpp.

§ scale() [2/2]

Transform& gk::Transform::scale ( const Vector3f factors)
inline

Definition at line 42 of file Transform.hpp.

§ translate() [1/2]

Transform & gk::Transform::translate ( float  x,
float  y,
float  z = 0 
)

Definition at line 28 of file Transform.cpp.

§ translate() [2/2]

Transform& gk::Transform::translate ( const Vector3f offset)
inline

Definition at line 36 of file Transform.hpp.

Member Data Documentation

§ Identity

const Transform gk::Transform::Identity
static

Definition at line 50 of file Transform.hpp.

§ m_matrix

glm::mat4 gk::Transform::m_matrix {1}
private

Definition at line 53 of file Transform.hpp.


The documentation for this class was generated from the following files: