![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <FrustumShape.hpp>
Public Member Functions | |
| FrustumShape (const std::string &name) | |
| Constructor. More... | |
| bool | load (const Camera::ClippingPlanes &clip, const glm::vec2 &size, const glm::quat &rotation) |
| Load this shape. More... | |
| bool | load (const Camera::ClippingPlanes &clip, const float fov, const float aspectRatio, const glm::quat &rotation) |
| Load this shape. More... | |
Public Member Functions inherited from jop::ConvexHullShape | |
| ConvexHullShape (const std::string &name) | |
| Constructor. More... | |
| bool | load (const std::vector< glm::vec3 > &points) |
| Load this shape. More... | |
| bool | load (const std::vector< glm::vec3 > &points, const std::vector< unsigned int > &indices) |
| Load this shape using indexed points. More... | |
Public Member Functions inherited from jop::CollisionShape | |
| 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... | |
Public Member Functions inherited from jop::Resource | |
| 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... | |
Public Member Functions inherited from jop::SafeReferenceable< Resource > | |
| WeakReference< Resource > | getReference () const |
| Get a weak reference to the bound object. More... | |
Public Member Functions inherited from jop::SerializeInfo | |
| 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 | |
Static Public Member Functions inherited from jop::ConvexHullShape | |
| static ConvexHullShape & | getDefault () |
| Get the default mesh shape. More... | |
Protected Member Functions inherited from jop::CollisionShape | |
| CollisionShape (const std::string &name) | |
| Constructor. More... | |
Protected Member Functions inherited from jop::Resource | |
| Resource (const Resource &other, const std::string &newName) | |
| Copy constructor. More... | |
Protected Member Functions inherited from jop::SafeReferenceable< Resource > | |
| 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... | |
Protected Attributes inherited from jop::CollisionShape | |
| std::unique_ptr< btCollisionShape > | m_shape |
| Shape data. More... | |
Definition at line 36 of file FrustumShape.hpp.
| jop::FrustumShape::FrustumShape | ( | const std::string & | name | ) |
Constructor.
| name | Name of the resource. This must be the file path if this resource is loaded from a file. |
| bool jop::FrustumShape::load | ( | const Camera::ClippingPlanes & | clip, |
| const glm::vec2 & | size, | ||
| const glm::quat & | rotation | ||
| ) |
Load this shape.
This will create a shape for an orthographic projection.
| clip | The clipping planes |
| size | Size of the projection |
| rotation | Local rotation to apply |
| bool jop::FrustumShape::load | ( | const Camera::ClippingPlanes & | clip, |
| const float | fov, | ||
| const float | aspectRatio, | ||
| const glm::quat & | rotation | ||
| ) |
Load this shape.
This will create a shape for a perspective projection.
| clip | The clipping planes |
| size | The vertical field of view in radians |
| aspectRatio | The aspect ratio (x / y) |
| rotation | Local rotation to apply |
1.8.11