![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <RectangleShape2D.hpp>
Public Member Functions | |
RectangleShape2D (const std::string &name) | |
Constructor. More... | |
bool | load (const float sizeX, const float sizeY) |
Load this shape. More... | |
bool | load (const glm::vec2 &extents) |
Load this shape using different extents. More... | |
![]() | |
virtual | ~CollisionShape2D () override=0 |
Virtual destructor. 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 | |
![]() | |
CollisionShape2D (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< b2Shape > | m_shape |
Shape data. More... | |
bool | m_isCompound |
Definition at line 34 of file RectangleShape2D.hpp.
jop::RectangleShape2D::RectangleShape2D | ( | const std::string & | name | ) |
Constructor.
name | Name of the resource |
bool jop::RectangleShape2D::load | ( | const float | sizeX, |
const float | sizeY | ||
) |
Load this shape.
sizeX | Width of the rectangle |
sizeY | Height of the rectangle |
bool jop::RectangleShape2D::load | ( | const glm::vec2 & | extents | ) |
Load this shape using different extents.
extents | Extents of the rectangle |