|
Khaotic Engine Reborn
|
Public Member Functions | |
| object (application_class &app) | |
| object (const object &)=delete | |
| object & | operator= (const object &)=delete |
| bool | Initialize (ID3D11Device *device, ID3D11DeviceContext *deviceContext, char *modelFilename, TextureContainer &texturesContainer) |
| void | SetScaleMatrix (XMMATRIX scaleMatrix) |
| void | SetRotateMatrix (XMMATRIX rotateMatrix) |
| void | SetTranslateMatrix (XMMATRIX translateMatrix) |
| void | SetSRMatrix (XMMATRIX srMatrix) |
| void | SetWorldMatrix (XMMATRIX worldMatrix) |
| void | SetPosition (XMVECTOR position) |
| void | SetRotation (XMVECTOR rotation) |
| void | SetScale (XMVECTOR scale) |
| XMMATRIX | GetScaleMatrix () const |
| XMMATRIX | GetRotateMatrix () const |
| XMMATRIX | GetTranslateMatrix () const |
| XMMATRIX | GetSRMatrix () const |
| XMMATRIX | GetWorldMatrix () const |
| XMVECTOR | GetPosition () |
| XMVECTOR | GetRotation () |
| XMVECTOR | GetScale () |
| void | SetVelocity (XMVECTOR) |
| void | AddVelocity (float deltaTime) |
| XMVECTOR | GetVelocity () const |
| void | SetAcceleration (XMVECTOR) |
| XMVECTOR | GetAcceleration () const |
| void | SetMass (float) |
| float | GetMass () const |
| void | SetGrounded (bool) |
| bool | IsGrounded () const |
| bool | IsPhysicsEnabled () const |
| void | SetPhysicsEnabled (bool state) |
| void | SetVisible (bool state) |
| bool | IsVisible () const |
| void | UpdateWorldMatrix () |
| void | UpdateSRMatrix () |
| void | UpdateScaleMatrix () |
| void | UpdateRotateMatrix () |
| void | UpdateTranslateMatrix () |
| void | UpdatePosition (float deltaTime) |
| void | Update () |
| std::string | GetName () |
| void | SetName (std::string name) |
| int | SetId (int id) |
| int | GetId () const |
| void | SetType (ObjectType type) |
| ObjectType | GetType () const |
| ShaderType | GetActiveShader () const |
| void | SetActiveShader (ShaderType activeShader) |
| float | GetBoundingRadius () const |
| void | SetBoundingRadius (float radius) |
| void | SetModelPath (std::wstring &path) |
| std::wstring & | GetModelPath () |
| ShaderType | StringToShaderType (const std::string &shaderType) |
| std::string | ShaderTypeToString (ShaderType shaderType) |
| ObjectType | StringToObjectType (const std::string &objectType) |
| std::string | ObjectTypeToString (ObjectType objectType) |
| void | LaunchObject () |
| bool | LoadTexturesFromPath (std::vector< std::wstring > &texturePaths, TextureContainer &texturesContainer, d_3d_class *m_Direct3D) |
| bool | SetupInstancing (ID3D11Device *device, const std::vector< XMMATRIX > &instanceTransforms) |
| void | EnableInstancing (bool enabled) |
| void | SetInstanceCount (int count) |
| bool | IsInstancingEnabled () const |
| int | GetInstanceCount () const |
| ID3D11Buffer * | GetInstanceBuffer () const |
| void | SetAlpha (float alpha) |
| float | GetAlpha () const |
| void | SetInitialStretch (float initialStretch) |
| float | GetInitialStretch () const |
| void | SetSpringConstant (float springConstant) |
| float | GetSpringConstant () const |
| bool | IsGravityEnabled () const |
| void | SetGravityEnabled (bool state) |
| std::shared_ptr< model_class > | get_model () const |
| void | SetModel (std::shared_ptr< model_class > model) |
Public Attributes | |
| bool | m_demoSpinning = false |
| XMVECTOR | m_previousPosition |
| XMVECTOR | m_velocity |
| int | m_id |
| bool | m_gravityEnabled = true |
| object::object | ( | application_class & | app | ) |
Definition at line 8 of file object.cpp.
| object::object | ( | ) |
Definition at line 24 of file object.cpp.
| object::~object | ( | ) |
Definition at line 41 of file object.cpp.
| void object::AddVelocity | ( | float | deltaTime | ) |
Definition at line 240 of file object.cpp.
|
inline |
| XMVECTOR object::GetAcceleration | ( | ) | const |
Definition at line 255 of file object.cpp.
|
inline |
|
inline |
| float object::GetBoundingRadius | ( | ) | const |
Definition at line 300 of file object.cpp.
| int object::GetId | ( | ) | const |
Definition at line 285 of file object.cpp.
|
inline |
| float object::GetMass | ( | ) | const |
Definition at line 265 of file object.cpp.
|
inline |
| std::string object::GetName | ( | ) |
Definition at line 225 of file object.cpp.
| XMVECTOR object::GetPosition | ( | ) |
Definition at line 123 of file object.cpp.
| XMMATRIX object::GetRotateMatrix | ( | ) | const |
Definition at line 103 of file object.cpp.
| XMVECTOR object::GetRotation | ( | ) |
Definition at line 130 of file object.cpp.
| XMVECTOR object::GetScale | ( | ) |
Definition at line 140 of file object.cpp.
| XMMATRIX object::GetScaleMatrix | ( | ) | const |
Definition at line 98 of file object.cpp.
|
inline |
| XMMATRIX object::GetSRMatrix | ( | ) | const |
Definition at line 113 of file object.cpp.
| XMMATRIX object::GetTranslateMatrix | ( | ) | const |
Definition at line 108 of file object.cpp.
|
inline |
| XMVECTOR object::GetVelocity | ( | ) | const |
Definition at line 245 of file object.cpp.
| XMMATRIX object::GetWorldMatrix | ( | ) | const |
Definition at line 118 of file object.cpp.
| bool object::Initialize | ( | ID3D11Device * | device, |
| ID3D11DeviceContext * | deviceContext, | ||
| char * | modelFilename, | ||
| TextureContainer & | texturesContainer ) |
Definition at line 45 of file object.cpp.
|
inline |
| bool object::IsGrounded | ( | ) | const |
Definition at line 275 of file object.cpp.
| bool object::IsPhysicsEnabled | ( | ) | const |
Definition at line 290 of file object.cpp.
|
inline |
| void object::LaunchObject | ( | ) |
Definition at line 359 of file object.cpp.
| bool object::LoadTexturesFromPath | ( | std::vector< std::wstring > & | texturePaths, |
| TextureContainer & | texturesContainer, | ||
| d_3d_class * | m_Direct3D ) |
Definition at line 401 of file object.cpp.
| std::string object::ObjectTypeToString | ( | ObjectType | objectType | ) |
Definition at line 317 of file object.cpp.
| void object::SetAcceleration | ( | XMVECTOR | acceleration | ) |
Definition at line 250 of file object.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
| void object::SetGrounded | ( | bool | isGrounded | ) |
Definition at line 270 of file object.cpp.
| int object::SetId | ( | int | id | ) |
Definition at line 280 of file object.cpp.
|
inline |
| void object::SetMass | ( | float | mass | ) |
Definition at line 260 of file object.cpp.
|
inline |
|
inline |
| void object::SetName | ( | std::string | name | ) |
Definition at line 230 of file object.cpp.
| void object::SetPhysicsEnabled | ( | bool | state | ) |
Definition at line 295 of file object.cpp.
| void object::SetPosition | ( | XMVECTOR | position | ) |
Definition at line 163 of file object.cpp.
| void object::SetRotateMatrix | ( | XMMATRIX | rotateMatrix | ) |
Definition at line 78 of file object.cpp.
| void object::SetRotation | ( | XMVECTOR | rotation | ) |
Definition at line 173 of file object.cpp.
| void object::SetScale | ( | XMVECTOR | scale | ) |
Definition at line 181 of file object.cpp.
| void object::SetScaleMatrix | ( | XMMATRIX | scaleMatrix | ) |
Definition at line 73 of file object.cpp.
|
inline |
| void object::SetSRMatrix | ( | XMMATRIX | srMatrix | ) |
Definition at line 88 of file object.cpp.
| void object::SetTranslateMatrix | ( | XMMATRIX | translateMatrix | ) |
Definition at line 83 of file object.cpp.
| void object::SetType | ( | ObjectType | type | ) |
Definition at line 312 of file object.cpp.
| void object::SetVelocity | ( | XMVECTOR | velocity | ) |
Definition at line 235 of file object.cpp.
|
inline |
| void object::SetWorldMatrix | ( | XMMATRIX | worldMatrix | ) |
Definition at line 93 of file object.cpp.
| std::string object::ShaderTypeToString | ( | ShaderType | shaderType | ) |
Definition at line 333 of file object.cpp.
| ObjectType object::StringToObjectType | ( | const std::string & | objectType | ) |
Definition at line 326 of file object.cpp.
| ShaderType object::StringToShaderType | ( | const std::string & | shaderType | ) |
Definition at line 347 of file object.cpp.
| void object::Update | ( | ) |
Definition at line 216 of file object.cpp.
| void object::UpdatePosition | ( | float | deltaTime | ) |
Definition at line 305 of file object.cpp.
| void object::UpdateRotateMatrix | ( | ) |
Definition at line 206 of file object.cpp.
| void object::UpdateScaleMatrix | ( | ) |
Definition at line 211 of file object.cpp.
| void object::UpdateSRMatrix | ( | ) |
Definition at line 196 of file object.cpp.
| void object::UpdateTranslateMatrix | ( | ) |
Definition at line 201 of file object.cpp.
| void object::UpdateWorldMatrix | ( | ) |
Definition at line 191 of file object.cpp.