draw
0.0.0
|
Set of indexed 2D-primitives. More...
#include <draw.h>
Classes | |
struct | Vertex |
2D-vertex. More... | |
Public Types | |
enum | Primitive { Primitive::Point = 1, Primitive::Line, Primitive::Triangle } |
A type of primitive. More... | |
using | Vertices = Span< Vertex > |
Sequence of vertices. More... | |
using | Index = uint16_t |
An index of a vertex. More... | |
using | Indices = Span< Index > |
Sequence of indices. More... | |
Public Member Functions | |
virtual | ~Geometry ()=default |
virtual uint32_t | vertexCount () const =0 |
return vertex count More... | |
virtual uint32_t | indexCount () const =0 |
return index count More... | |
virtual Primitive | primitive () const =0 |
return primitive type More... | |
Static Public Attributes | |
static const uint32_t | kMaxVertexCount = 65535 |
maximum available vertex count More... | |
Set of indexed 2D-primitives.
You should define your vertices in [0.0, 1.0] space as if it's fit to one pixel. Then you can set appropriate pixel size via Shape::size(const Size& size). To create an object of this type use Renderer::makeGeometry function.
using draw::Geometry::Index = uint16_t |
An index of a vertex.
using draw::Geometry::Indices = Span<Index> |
Sequence of indices.
using draw::Geometry::Vertices = Span<Vertex> |
Sequence of vertices.
|
strong |
|
virtualdefault |
|
pure virtual |
return index count
|
pure virtual |
return primitive type
|
pure virtual |
return vertex count
|
static |
maximum available vertex count