21 #ifndef GF_SPRITE_BATCH_H
22 #define GF_SPRITE_BATCH_H
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
95 static constexpr std::size_t MaxSpriteCount = 1024;
96 static constexpr std::size_t VerticesPerSprite = 6;
97 static constexpr std::size_t MaxVertexCount = MaxSpriteCount * VerticesPerSprite;
102 std::array<
Vertex, MaxVertexCount> m_vertices;
105 #ifndef DOXYGEN_SHOULD_SKIP_THIS
A sprite batch.
Definition: SpriteBatch.h:61
SpriteBatch(RenderTarget &target)
Constructor.
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:65
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
A point associated with a color and a texture coordinate.
Definition: Vertex.h:75
A drawable representation of a texture, with its own transformations, color, etc. ...
Definition: Sprite.h:87
void begin()
Begin the batch.
void draw(Sprite &sprite, const RenderStates &states=RenderStates())
Add a sprite to the batch.
#define GF_API
Definition: Portability.h:35