![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <CompoundShape.hpp>
Public Member Functions | |
CompoundShape (const std::string &name) | |
Constructor. More... | |
void | addChild (CollisionShape &childShape, const Transform::Variables &childTransform) |
Add a child shape. More... | |
![]() | |
virtual | ~CollisionShape () override=0 |
Virtual destructor. More... | |
void | setMargin (const float margin) |
Set the margin of this shape. More... | |
float | getMargin () const |
Get the margin of this shape. More... | |
void | setLocalScale (const glm::vec3 &scale) |
Set the local scaling. More... | |
glm::vec3 | getLocalScale () const |
Get the current local scaling. More... | |
![]() | |
Resource (const std::string &name) | |
Constructor. More... | |
virtual | ~Resource ()=0 |
Virtual destructor. More... | |
const std::string & | getName () const |
Get the name of this resource. More... | |
void | setPersistence (const unsigned short level) |
Set the persistence level. More... | |
unsigned short | getPersistence () const |
Get the persistence level. More... | |
![]() | |
WeakReference< Resource > | getReference () const |
Get a weak reference to the bound object. More... | |
![]() | |
SerializeInfo () | |
void | setSerializePackage (const uint16 package) |
uint16 | getSerializePackage () const |
void | setShouldSerialize (const bool set) |
bool | shouldSerialize () const |
void | setLightSerializeable (const bool set) |
bool | isLightSerializeable () const |
Additional Inherited Members | |
![]() | |
CollisionShape (const std::string &name) | |
Constructor. More... | |
![]() | |
Resource (const Resource &other, const std::string &newName) | |
Copy constructor. More... | |
![]() | |
SafeReferenceable (Resource *ref) | |
Constructor. More... | |
SafeReferenceable (SafeReferenceable< Resource > &&other) | |
Move constructor. More... | |
SafeReferenceable & | operator= (SafeReferenceable< Resource > &&other) |
Move assignment operator. More... | |
~SafeReferenceable () | |
Protected destructor. More... | |
![]() | |
std::unique_ptr< btCollisionShape > | m_shape |
Shape data. More... | |
Definition at line 37 of file CompoundShape.hpp.
jop::CompoundShape::CompoundShape | ( | const std::string & | name | ) |
Constructor.
name | Name of the resource |
void jop::CompoundShape::addChild | ( | CollisionShape & | childShape, |
const Transform::Variables & | childTransform | ||
) |
Add a child shape.
childShape | Reference to a valid shape |
childTransform | Local transform for the child |