29 #include <glm/vec2.hpp>
30 #include <glm/mat4x4.hpp>
31 #include "eng3d/primitive.hpp"
40 Curve(std::vector<glm::vec3> points, std::vector<glm::vec3> normals,
float width);
43 void add_line(std::vector<glm::vec3> points, std::vector<glm::vec3> normals,
float width);
45 #if defined E3D_BACKEND_OPENGL || defined E3D_BACKEND_GLES
48 # error not implemented
51 void create_line(
const std::vector<glm::vec3>& points,
const std::vector<glm::vec3>& normals,
float width);
52 void add_quad(glm::vec3 c1, glm::vec3 c2, glm::vec3 c3, glm::vec3 c4);
53 std::vector<glm::vec3> positions;
54 std::vector<glm::vec2> tex_coords;
55 std::unique_ptr<TriangleList> quads;
void draw(const Eng3D::OpenGL::VAO &vao, MeshMode mode, const void *indices, size_t n_indices, const void *buffer, size_t n_buffer, int instances)
void add_line(std::vector< glm::vec3 > points, std::vector< glm::vec3 > normals, float width)