24 #include "GraphicsApi.h" 26 #include "Transformable.h" 28 #include "VertexArray.h" 29 #include "VertexBuffer.h" 32 #ifndef DOXYGEN_SHOULD_SKIP_THIS 89 void setColor(
const Color4f& color);
106 m_lineWidth = lineWidth;
129 RectF getLocalBounds()
const;
141 void setAnchor(
Anchor anchor);
156 void updateGeometry();
191 void setGridSize(
Vector2i gridSize);
207 void setRadius(
float radius);
224 return m_helper.getHexagonSize(m_radius);
232 void setColor(
const Color4f& color);
249 m_lineWidth = lineWidth;
272 RectF getLocalBounds()
const;
284 void setAnchor(
Anchor anchor);
299 void updateGeometry();
310 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Vector2i getGridSize() const noexcept
Get the grid size.
Definition: Grid.h:64
A set of primitives.
Definition: VertexArray.h:65
Vector2f getCellSize() const noexcept
Get the cell size.
Definition: Grid.h:80
void setLineWidth(float lineWidth) noexcept
Set the width of the grid frame.
Definition: Grid.h:248
float getLineWidth() const noexcept
Get the width of the grid frame.
Definition: Grid.h:114
void setLineWidth(float lineWidth) noexcept
Set the width of the grid frame.
Definition: Grid.h:105
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
Data in the graphics memory.
Definition: VertexBuffer.h:81
float getRadius() const noexcept
Get the radius of hexagon.
Definition: Grid.h:214
The namespace for gf classes.
Definition: Action.h:35
A square grid.
Definition: Grid.h:40
A 4D vector.
Definition: Vector.h:852
MapCellIndex
Map cell index in a map celled or hexagonal map.
Definition: MapCell.h:35
A helper for computing coordinates in a hexagonal map.
Definition: Hexagon.h:41
float getLineWidth() const noexcept
Get the width of the grid frame.
Definition: Grid.h:257
const Color4f & getColor() const noexcept
Get the color of the grid frame.
Definition: Grid.h:96
Vector2i getGridSize() const noexcept
Get the grid size.
Definition: Grid.h:198
Anchor
An anchor of a box.
Definition: Anchor.h:38
MapCellAxis
Map cell axis in a map celled.
Definition: MapCell.h:46
A hexagonal grid.
Definition: Grid.h:170
Vector2f getHexagonSize() const noexcept
Get the hexagon size.
Definition: Grid.h:223
const Color4f & getColor() const noexcept
Get the color of the grid frame.
Definition: Grid.h:239