TIny cleanup

This commit is contained in:
2023-02-22 15:55:14 -08:00
parent 389a290362
commit 5dcf20a282
9 changed files with 97 additions and 57 deletions

View File

@ -10,7 +10,7 @@
#define SCENE_DEBUG_LINE_VERTICE_COUNT 2
#define SCENE_DEBUG_LINE_INDICE_COUNT 2
#define SCENE_DEBUG_LINE_PRIORITY 100
#define SCENE_DEBUG_LINE_PRIORITY 1
namespace Dawn {
class SimpleTexturedShader;
@ -20,14 +20,16 @@ namespace Dawn {
glm::vec3 min;
glm::vec3 max;
struct Color color = COLOR_RED;
glm::mat4 translation = glm::mat4(1.0f);
glm::mat4 transform = glm::mat4(1.0f);
};
struct SceneDebugLine {
glm::vec3 v0 = glm::vec3(0, 0, 0);
glm::vec3 v1 = glm::vec3(1, 1, 1);
struct Color color = COLOR_RED;
glm::mat4 translation = glm::mat4(1.0f);
glm::mat4 transform = glm::mat4(1.0f);
int32_t priority = SCENE_DEBUG_LINE_PRIORITY;
/**
* Creates a renderable shader item for this debug line.