GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes
radix::Transform Class Reference

#include <external/RadixEngine/include/radix/component/Transform.hpp>

Inherits radix::Component.

Public Member Functions

void privSetPosition (const Vector3f &v)
 
void privSetScale (const Vector3f &v)
 
void privSetOrientation (const Quaternion &v)
 
 Transform (Entity &ent)
 
const char * getName () const
 
TypeId getTypeId () const
 
void serialize (serine::Archiver &)
 
const Vector3fgetPosition () const
 
void setPosition (const Vector3f &)
 
const Vector3fgetScale () const
 
void setScale (const Vector3f &)
 
const QuaterniongetOrientation () const
 
void setOrientation (const Quaternion &)
 
void applyModelMtx (Matrix4f &) const
 
void getModelMtx (Matrix4f &) const
 
- Public Member Functions inherited from radix::Component
 Component (Entity &ent) noexcept
 
virtual ~Component ()
 

Protected Attributes

Vector3f position
 
Vector3f scale
 
Quaternion orientation
 
- Protected Attributes inherited from radix::Component
Entityentity
 

Additional Inherited Members

- Public Types inherited from radix::Component
using TypeId = ComponentTypeId
 
- Static Public Member Functions inherited from radix::Component
template<typename T >
static TypeId getTypeId ()
 Gets a component's type ID. More...
 
- Static Public Attributes inherited from radix::Component
static constexpr TypeId MaxId = 32
 

Constructor & Destructor Documentation

radix::Transform::Transform ( Entity ent)
inline

Member Function Documentation

void radix::Transform::applyModelMtx ( Matrix4f m) const
void radix::Transform::getModelMtx ( Matrix4f m) const
const char* radix::Transform::getName ( ) const
inlinevirtual

Implements radix::Component.

const Quaternion& radix::Transform::getOrientation ( ) const
inline
const Vector3f& radix::Transform::getPosition ( ) const
inline
const Vector3f& radix::Transform::getScale ( ) const
inline
TypeId radix::Transform::getTypeId ( ) const
inlinevirtual

Implements radix::Component.

void radix::Transform::privSetOrientation ( const Quaternion v)
inline
void radix::Transform::privSetPosition ( const Vector3f v)
inline
void radix::Transform::privSetScale ( const Vector3f v)
inline
void radix::Transform::serialize ( serine::Archiver &  ar)
void radix::Transform::setOrientation ( const Quaternion val)
void radix::Transform::setPosition ( const Vector3f val)
void radix::Transform::setScale ( const Vector3f val)

Field Documentation

Quaternion radix::Transform::orientation
protected
Vector3f radix::Transform::position
protected
Vector3f radix::Transform::scale
protected

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