-
Notifications
You must be signed in to change notification settings - Fork 0
/
object2D.h
27 lines (17 loc) · 945 Bytes
/
object2D.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include <string>
#include "core/gpu/mesh.h"
namespace object2D
{
// Create square with given bottom left corner, length and color
Mesh* CreateSquare(const std::string& name, glm::vec3 leftBottomCorner, float size, glm::vec3 color, bool fill = false);
// Create rectangle with given bottom left corner, length and color
Mesh* CreateRectangle(const std::string& name, glm::vec3 leftBottomCorner, float size, glm::vec3 color, bool fill);
// Create a pistol
Mesh* CreatePistol(const std::string& name, glm::vec3 center, float diamondSize, float rectangleSize, glm::vec3 color, bool fill);
// Create a hexagone
Mesh* CreateHexagon(const std::string& name, glm::vec3 center, float size1, float size2, glm::vec3 color1, glm::vec3 color2);
// Create a star
Mesh* CreateStar(const std::string& name, glm::vec3 center, float size, glm::vec3 color);
}
#pragma once