RenderQueue.h
Go to the documentation of this file.
70 void render(T* object, const Location& location, typename T::Callback callback = nullptr, uint16_t delayMs = 0)
75 template <typename T> void render(T* object, typename T::Callback callback = nullptr, uint16_t delayMs = 0)
86 void renderObject(Object* object, const Location& location, Completed callback, uint16_t delayMs);
A drawable object inherits from this virtual base class.
Definition: Libraries/Graphics/src/include/Graphics/Object.h:97
Top-level manager to queue objects for rendering to a specific target.
Definition: RenderQueue.h:35
Delegate< void(Object *object)> Completed
Definition: RenderQueue.h:37
void render(T *object, typename T::Callback callback=nullptr, uint16_t delayMs=0)
Definition: RenderQueue.h:75
void render(T *object, const Location &location, typename T::Callback callback=nullptr, uint16_t delayMs=0)
Add object to the render queue and start rendering if it isn't already.
Definition: RenderQueue.h:70
RenderQueue(RenderTarget &target, uint8_t surfaceCount=2, size_t bufferSize=0)
Constructor.
Definition: RenderQueue.h:54
Interface for objects which support writing via surfaces.
Definition: Libraries/Graphics/src/include/Graphics/Object.h:739
virtual Surface * createSurface(size_t bufferSize=0)=0
Create a surface for use with this render target.
Location location
Definition: Libraries/Graphics/src/include/Graphics/Object.h:90
OwnedLinkedObjectListTemplate< Renderer > OwnedList
Definition: Libraries/Graphics/src/include/Graphics/Object.h:69
OwnedLinkedObjectListTemplate< Surface > OwnedList
Definition: Surface.h:45
Base class template for linked items with type casting.
Definition: LinkedObject.h:62
Definition: Virtual.h:31
std::function< void(size_t current)> Callback
Callback function type.
Definition: malloc_count.h:77
Identifies position within bounding rectangle.
Definition: Libraries/Graphics/src/include/Graphics/Types.h:683