3D Quad with 2 triangles with CW winding.
More...
#include <Quad.hpp>
3D Quad with 2 triangles with CW winding.
Definition at line 10 of file Quad.hpp.
◆ Quad() [1/2]
◆ Quad() [2/2]
| sKit::Quad::Quad |
( |
glm::vec3 |
pos, |
|
|
glm::vec2 |
dimensions |
|
) |
| |
Create a quad by specifying top left corner and dimensions (width and height). Vertices and indices are automatically generated.
- Parameters
-
| pos | top left corner of the quad |
| dimensions | width and height of the quad |
Definition at line 5 of file Quad.cpp.
References dimensions, indices, pos, and vertices.
◆ dimensions
| glm::vec2 sKit::Quad::dimensions |
Width along the X axis and height along the Y axis.
Definition at line 24 of file Quad.hpp.
Referenced by Quad().
◆ indices
| std::vector<uint16_t> sKit::Quad::indices |
◆ pos
| glm::vec3 sKit::Quad::pos |
Position of the top left corner.
Definition at line 21 of file Quad.hpp.
Referenced by Quad().
◆ vertices
| std::vector<glm::vec3> sKit::Quad::vertices |
The documentation for this class was generated from the following files: