Hymn to Beauty
C++ 3D Engine
Rectangle.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Video {
6namespace Geometry {
9 public:
11
14 Rectangle(LowLevelRenderer* lowLevelRenderer);
15
17 ~Rectangle() final;
18
19 const Vertex* GetVertices() const final;
20 unsigned int GetVertexCount() const final;
21 const unsigned int* GetIndices() const final;
22 unsigned int GetIndexCount() const final;
23
24 private:
25 Vertex* vertexData = nullptr;
26 unsigned int vertexNr = 0;
27
28 unsigned int* indexData = nullptr;
29 unsigned int indexNr = 0;
30};
31} // namespace Geometry
32} // namespace Video
Interface for renderable 2D geometry.
Definition: Geometry2D.hpp:13
A renderable 2D rectangle.
Definition: Rectangle.hpp:8
~Rectangle() final
Destructor.
Definition: Rectangle.cpp:31
const Vertex * GetVertices() const final
Get all the vertices.
Definition: Rectangle.cpp:36
unsigned int GetVertexCount() const final
Get the number of vertices.
Definition: Rectangle.cpp:40
Rectangle(LowLevelRenderer *lowLevelRenderer)
Create new rectangle.
Definition: Rectangle.cpp:6
const unsigned int * GetIndices() const final
Get all the vertex indices.
Definition: Rectangle.cpp:44
unsigned int GetIndexCount() const final
Get the number of indicies.
Definition: Rectangle.cpp:48
Low level renderer abstracting the underlaying graphics API (OpenGL or Vulkan).
Definition: LowLevelRenderer.hpp:27
Definition: AssetEditor.hpp:5
Definition: Editor.hpp:18
A vertex point.
Definition: Geometry2D.hpp:16