21#ifndef GF_BUFFERED_GEOMETRY_H
22#define GF_BUFFERED_GEOMETRY_H
24#include "GraphicsApi.h"
27#include "Transformable.h"
30#ifndef DOXYGEN_SHOULD_SKIP_THIS
95 m_outlineBuffer = &outlineBuffer;
112 m_texture = &texture;
137 return m_texture !=
nullptr;
201#ifndef DOXYGEN_SHOULD_SKIP_THIS
An image that lives in the graphic memory that can be used for drawing.
Definition: Texture.h:79
A drawable for buffers.
Definition: BufferedGeometry.h:55
void setOutlineBuffer(const VertexBuffer &outlineBuffer)
Set the outline buffer, if any.
Definition: BufferedGeometry.h:94
BufferedGeometry(const VertexBuffer &buffer)
Constructor with a buffer.
void setBuffer(const VertexBuffer &buffer)
Set the vertex buffer.
Definition: BufferedGeometry.h:84
void setTexture(const BareTexture &texture)
Change the source texture of the geometry.
Definition: BufferedGeometry.h:111
virtual void draw(RenderTarget &target, const RenderStates &states) override
Draw the object to a render target.
BufferedGeometry(const VertexBuffer &buffer, const VertexBuffer &outlineBuffer)
Constructor with a buffer and an outline buffer.
bool hasTexture() const
Check if a texture is set.
Definition: BufferedGeometry.h:136
BufferedGeometry()
Default constructor.
void unsetTexture()
Unset the source texture of the geometry.
Definition: BufferedGeometry.h:147
const BareTexture & getTexture() const
Get the source texture of the geometry.
Definition: BufferedGeometry.h:125
void setLocalBounds(const RectF &bounds)
Set the local bounds of the geometry.
Definition: BufferedGeometry.h:160
void setAnchor(Anchor anchor)
Set the anchor origin of the entity.
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
Definition: BufferedGeometry.h:175
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Data in the graphics memory.
Definition: VertexBuffer.h:81
Anchor
An anchor of a box.
Definition: Anchor.h:38
The namespace for gf classes.
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82