|
| World (Object &obj, Renderer &renderer) |
| Constructor. More...
|
|
| ~World () override |
| Destructor. More...
|
|
void | update (const float deltaTime) override |
| Update the world. More...
|
|
void | draw (const ProjectionInfo &proj, const LightContainer &lights) const override |
| Debug draw the world. More...
|
|
RayInfo | checkRayClosest (const glm::vec3 &start, const glm::vec3 &ray, const short group=1, const short mask=32767) const |
| Check if a ray hits a collider and return the closest one. More...
|
|
std::vector< RayInfo > | checkRayAllHits (const glm::vec3 &start, const glm::vec3 &ray, const short group=1, const short mask=32767) const |
| Check if a ray hits a collider and return all hits. More...
|
|
std::vector< Collider * > | checkOverlapAll (const glm::vec3 &aabbStart, const glm::vec3 &aabbEnd, const short group=1, const short mask=32767) const |
| Get all the colliders that overlap with the bounding box. More...
|
|
void | setDebugMode (const bool enable) |
| Enable/disable debug drawing. More...
|
|
bool | debugMode () const |
| Check if debug drawing is enabled. More...
|
|
void | setGravity (const glm::vec3 &gravity) |
| Set gravity for world. More...
|
|
glm::vec3 | getGravity () const |
| Get gravity for world. More...
|
|
void | setBroadphaseBallback (const BroadphaseCallback &callback) |
| Set the broad phase callback. More...
|
|
void | setDefaultBroadphaseCallback () |
| Restore the default broad phase callback. More...
|
|
| Drawable (Object &object, Renderer &renderer, const RenderPass::Pass pass=RenderPass::Pass::BeforePost, const bool cull=true) |
| Constructor. More...
|
|
| Drawable (Object &object, RenderPass &pass, const bool cull=true) |
| Overloaded constructor. More...
|
|
virtual | ~Drawable () override |
| Virtual destructor. More...
|
|
Renderer & | getRendrer () |
| Get the renderer this drawable is bound to. More...
|
|
const Renderer & | getRenderer () const |
| Get the renderer this drawable is bound to. More...
|
|
Drawable & | setRenderGroup (const uint8 group) |
| Set the render group. More...
|
|
uint8 | getRenderGroup () const |
| Get the render group. More...
|
|
Drawable & | setModel (const Model &model) |
| Set the model. More...
|
|
Model & | getModel () |
| Get the model. More...
|
|
const Model & | getModel () const |
| Get the model. More...
|
|
Drawable & | setColor (const Color &color) |
| Set the color. More...
|
|
const Color & | getColor () const |
| Get the color. More...
|
|
const std::pair< glm::vec3, glm::vec3 > & | getLocalBounds () const |
| Get the local bounds. More...
|
|
std::pair< glm::vec3, glm::vec3 > | getGlobalBounds () const |
| Get the global bounds. More...
|
|
Drawable & | setFlags (const uint32 flags) |
| Set flags. More...
|
|
bool | hasFlag (const uint32 flag) const |
| Check if this drawable has a flag. More...
|
|
ShaderProgram & | getShader () const |
| Get the current shader. More...
|
|
void | setOverrideShader (ShaderProgram &shader) |
| Set an override shader. More...
|
|
void | removeOverrideShader () |
| Remove the override shader if one is bound. More...
|
|
bool | hasOverrideShader () const |
| Check if using an override shader. More...
|
|
uint64 | getAttributes () const |
| Get the internal attribute field. More...
|
|
Public Member Functions inherited from jop::PhantomBody |
| PhantomBody (Object &object, World &world, CollisionShape &shape, const bool attachToWorld) |
| Constructor. More...
|
|
virtual | ~PhantomBody () override |
|
std::vector< Collider * > | getOverlaps () |
| Get all the overlapping colliders. More...
|
|
std::vector< const Collider * > | getOverlaps () const |
| Get all the overlapping colliders. More...
|
|
unsigned int | getOverlapAmount () const |
| Get the number of overlapping colliders. More...
|
|
bool | checkOverlap (const Collider &other) const |
| Check if this collider overlaps with another. More...
|
|
bool | checkContact (const Collider &other) const |
| Check if this collider is in contact with another. More...
|
|
bool | checkRay (const glm::vec3 &start, const glm::vec3 &ray) const |
| Check if a ray pierces this collider. More...
|
|
void | registerListener (ContactListener &listener) |
| Register a listener for this collider. More...
|
|
World & | getWorld () |
| Get the world this collider belongs to. More...
|
|
const World & | getWorld () const |
| Get the world this collider belongs to. More...
|
|
void | detachFromWorld () |
| Detach this body from its world. More...
|
|
void | attachToWorld () |
| Attach this body to its world if it was previously detached. More...
|
|
bool | isDetachedFromWorld () const |
| Check if this body is currently detached from its world. More...
|
|
void | updateWorldBounds () |
| Force update of the world space bounds. More...
|
|
void | setCollisionShape (CollisionShape &shape) |
| Set the collision shape. More...
|
|
const CollisionShape * | getCollisionShape () const |
| Get the collision shape. More...
|
|
virtual | ~Component ()=0 |
| Virtual destructor. More...
|
|
Message::Result | sendMessage (const Message &message) |
| Send a message to this component. More...
|
|
uint32 | getID () const |
| Get the identifier. More...
|
|
void | setID (const uint32 ID) |
| Set the identifier. More...
|
|
WeakReference< Object > | getObject () |
| Get the object this component is bound to. More...
|
|
WeakReference< const Object > | getObject () const |
| Get the object this component is bound to. More...
|
|
bool | isActive () const |
| Check if this component is active. More...
|
|
void | removeSelf () |
| Remove this component from its object. More...
|
|
WeakReference< Collider > | getReference () const |
| Get a weak reference to the bound object. More...
|
|
Definition at line 47 of file World.hpp.