27 #include <glm/glm.hpp>
28 #include <glm/vec2.hpp>
29 #include <glm/vec3.hpp>
31 #include "eng3d/mesh.hpp"
32 #include "eng3d/rectangle.hpp"
36 Line(glm::vec2 start, glm::vec2 end);
41 Quad(glm::vec3 c1, glm::vec3 c2, glm::vec3 c3, glm::vec3 c4);
51 Square(
float start_x,
float start_y,
float end_x,
float end_y);
57 TriangleList(std::vector<glm::vec3>& positions, std::vector<glm::vec2>& tex_coords);
65 Sphere(
float x,
float y,
float z,
float radius,
int resolution,
bool cw_winding =
true);
Sphere(float x, float y, float z, float radius, int resolution, bool cw_winding=true)
Line(glm::vec2 start, glm::vec2 end)
Packed model - packs both vertices and texcoords into the same buffer.
A static mesh with fixed number of elements.
Quad(glm::vec3 c1, glm::vec3 c2, glm::vec3 c3, glm::vec3 c4)
Square(float start_x, float start_y, float end_x, float end_y)
TriangleList(std::vector< glm::vec3 > &positions, std::vector< glm::vec2 > &tex_coords)