Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::Drawable Class Referenceabstract

Interface for objects that contribute ordered work to a rendered frame. More...

#include <flint/graphics/drawable.h>

+ Inheritance diagram for Flint::Drawable:
+ Collaboration diagram for Flint::Drawable:

Public Member Functions

virtual void emit (RenderQueue &queue) const =0
 Emit this drawable's rendering work for the current frame.
 
void setGPUTexture (GPUTexture *texture)
 Associate a texture with this drawable.
 
GPUTexture * getGPUTexture () const
 Get the associated GPU texture.
 

Protected Attributes

GPUTexture * m_gpuTexture = nullptr
 Non-owning reference to the GPU texture asset.
 

Detailed Description

Interface for objects that contribute ordered work to a rendered frame.

Concrete drawables implement emit() to describe their geometry or custom rendering through RenderQueue.

See also
RenderQueue

Definition at line 21 of file drawable.h.


The documentation for this class was generated from the following file: