9#include <smk/Transformable.hpp>
10#include <smk/VertexArray.hpp>
37 static std::vector<glm::vec2>
Bezier(
const std::vector<glm::vec2>& point,
A collection of static function to build simple shape.
static Transformable RoundedRectangle(float width, float height, float radius)
Return a rounded centered rectangle. @params width The width of the rectangle. @params height The hei...
static Transformable Line(const glm::vec2 &a, const glm::vec2 &b, float thickness)
Return a line with a given thickness.
static Transformable3D Cube()
Return a centered 1x1x1 3D cube.
static Transformable Path(const std::vector< glm::vec2 > &points, float thickness)
Build a path of a given |thickness| along a sequence of connected lines. @params points The sequence ...
static Transformable Circle(float radius)
Return a circle.
static Transformable3D IcoSphere(int iteration)
A centered sphere.
static Transformable Square()
Return the square [0,1]x[0,1].
static std::vector< glm::vec2 > Bezier(const std::vector< glm::vec2 > &point, size_t subdivision)
Return a bezier curve.
static Transformable3D Plane()
Return a centered 1x1 square in a 3D space.
An array of smk::Vertex moved to the GPU memory. This represent a set of triangles to be drawn by the...