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);
92 {
Base class template for linked items with type casting.
Definition: LinkedObject.h:61
Delegate< void(Object *object)> Completed
Definition: RenderQueue.h:75
Class template for singly-linked list of objects.
Definition: LinkedObjectList.h:174
Identifies position within bounding rectangle.
Definition: Libraries/Graphics/src/include/Graphics/Types.h:702
RenderQueue(RenderTarget &target, uint8_t surfaceCount=2, size_t bufferSize=0)
Constructor.
Definition: RenderQueue.h:92
virtual Surface * createSurface(size_t bufferSize=0)=0
Create a surface for use with this render target.
Definition: Virtual.h:30
A drawable object inherits from this virtual base class.
Definition: Libraries/Graphics/src/include/Graphics/Object.h:115
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:108
std::function< void(size_t current)> Callback
Callback function type.
Definition: malloc_count.h:103
Interface for objects which support writing via surfaces.
Definition: Libraries/Graphics/src/include/Graphics/Object.h:759
Definition: Delegate.h:20
Location location
Definition: Libraries/Graphics/src/include/Graphics/Object.h:109