25 #ifndef GRAPHICS_RENDERABLE_H 26 #define GRAPHICS_RENDERABLE_H 28 #include <boost/noncopyable.hpp> 30 #include "glm/mat4x4.hpp" 86 virtual bool isIn(
float x,
float y)
const;
88 virtual bool isIn(
float x,
float y,
float z)
const;
90 virtual bool isIn(
float x1,
float y1,
float z1,
float x2,
float y2,
float z2)
const;
114 #endif // GRAPHICS_RENDERABLE_H const Common::UString & getTag() const
Get the object's tag.
virtual void show()
Show the object.
virtual void hide()
Hide the object.
A class holding an UTF-8 string.
double _distance
The distance of the object from the viewer.
void unlockFrameIfVisible()
void lockFrameIfVisible()
double getDistance() const
Get the distance of the object from the viewer.
virtual void calculateDistance()=0
Calculate the object's distance.
virtual void renderImmediate(const glm::mat4 &parentTransform)
For shader based systems, don't sort anything, render this right_now.
virtual void queueRender(const glm::mat4 &parentTransform)
Queue the object for later rendering.
void setClickable(bool clickable)
Set the object's clickable state.
virtual void advanceTime(float dt)
Advance time (used by renderables with animations).
virtual bool isIn(float x, float y) const
Is that point within the object?
An object that can be displayed by the graphics manager.
uint32 getID() const
Get the object's unique ID.
bool isVisible() const
Is the object visible?
An object that can be stored in a queue.
bool operator<(const Queueable &q) const
void setTag(const Common::UString &tag)
Set the object's tag.
Renderable(RenderableType type)
bool isClickable() const
Is the object clickable?
virtual void render(RenderPass pass)=0
Render the object.