|
const vcm::Mat4 & | GetViewMatrix () |
|
void | SetPerspective (float fovY, float aspectRatio, float nearPlane, float farPlane) |
|
const vcm::Mat4 & | GetProjectionMatrix () |
|
void | SetFieldOfView (float fovY) |
|
float | GetFieldOfView () const |
|
void | SetAspectRatio (float aspectRatio) |
|
float | GetAspectRatio () const |
|
void | SetNearPlane (float nearPlane) |
|
float | GetNearPlane () const |
|
void | SetFarPlane (float farPlane) |
|
float | GetFarPlane () const |
|
void | LookAt (const vcm::Vec3 &target) |
|
template<class T > |
T * | As () |
|
template<class T > |
const T * | As () const |
|
template<class T > |
T * | ConstAs () const |
|
template<class T > |
T * | RAs () |
|
template<class T > |
const T * | RAs () const |
|
void | IncRefCount () |
|
void | DecRefCount () |
|
virtual void | Destroy () override |
| /!\ THIS FUNCTION MUST BE CALLED FOR DESTRUCTION, DO NOT USE delete
|
|
| PluginObject (const PluginType type) |
|
PluginType | GetType () const override |
|
template<class T > |
T * | DAs () |
|
template<class T > |
const T * | DAs () const |
|
| Transform3D (const Transform3D &other) |
|
Transform3D & | operator= (const Transform3D &other) |
|
| Transform3D (Transform3D &&other) noexcept |
|
Transform3D & | operator= (Transform3D &&other) noexcept |
|
void | SetPosition (const vcm::Vec3 &position) |
|
void | Move (const vcm::Vec3 &delta) |
|
void | MoveForward (const float delta) |
|
void | MoveRight (const float delta) |
|
void | MoveUp (const float delta) |
|
const vcm::Vec3 & | GetPosition () const |
|
bool | HasPositionChanged () |
|
void | SetRotation (const vcm::Vec3 &rotation) |
|
void | SetYaw (float angle) |
|
void | SetPitch (float angle) |
|
void | SetRoll (float angle) |
|
void | RotateYaw (float angle) |
|
void | RotatePitch (float angle) |
|
void | RotateRoll (float angle) |
|
void | Rotate (const vcm::Vec3 &rotation) |
|
const vcm::Quat & | GetRotationQuat () const |
|
const vcm::Vec3 & | GetRotation () |
|
void | RotateAround (const vcm::Vec3 &target, const vcm::Vec3 &planeNormal, float angle) |
| Rotates around the target on the given planeNormal by the given angle.
|
|
void | LookAt (const vcm::Vec3 &target) |
|
vcm::Vec3 | GetForwardVector () const |
|
vcm::Vec3 | GetUpVector () const |
|
vcm::Vec3 | GetRightVector () const |
|
void | UpdateModelMatrix () |
|
const vcm::Mat4 & | GetModelMatrix () |
|
|
static bool | HasCachedObject (const std::string &path) |
| Checks if an object is in the cache.
|
|
static SPtr< GraphicsCachedResource > | GetCachedObject (const std::string &path) |
| Gets a cached object from the graphics cache.
|
|
static const std::unordered_map< std::string, std::shared_ptr< GraphicsCachedResource > > & | GetCachedObjects () |
| Gets all cached objects.
|
|
void | _UpdateRotationQuat () |
|
static void | _SetInCache (const std::string &path, const SPtr< GraphicsCachedResource > &object) |
| Sets an object in the cache.
|
|
static void | _SetCacheSize (size_t size) |
| Adds cache size to avoid unnecessary additional allocations.
|
|
static void | _AddCacheSize (size_t size) |
| Adds cache size to avoid unnecessary additional allocations.
|
|
vcm::Vec3 | _position |
|
vcm::Quat | _rotationQuat |
|
union { | |
|
vcm::Vec3 _3Drotation | |
|
struct { | |
|
float _yaw | |
|
float _pitch | |
|
float _roll | |
|
} | | |
|
}; | | |
|
vcm::Mat4 | _modelMatrix |
|