Fixed time.

This commit is contained in:
2025-08-22 22:42:38 -05:00
parent 1fb9485ee8
commit 995bbe1acd
9 changed files with 68 additions and 63 deletions

View File

@@ -10,17 +10,9 @@
#include "display/camera.h"
#include "display/display.h"
#include "display/mesh/meshrenderer.h"
mesh_t mesh;
meshvertex_t triangle[3] = {
{{255, 0, 0, 255}, {0.0f, 0.0f}, {1.0f, 0.0f}}, // Vertex 1
{{0, 255, 0, 255}, {1.0f, 0.0f}, {-1.0f, 0.0f}}, // Vertex 2
{{0, 0, 255, 255}, {0.5f, 1.0f}, {0, 2.0f}} // Vertex 3
};
#include "display/mesh/quad.h"
void sceneTestAdd(void) {
meshInit(&mesh, MESH_PRIMITIVE_TRIANGLES, 3, triangle);
// Initialize the entity with a camera component
ecsid_t camera = ecsEntityAdd();
node_t *node = nodeAdd(camera);
@@ -39,5 +31,5 @@ void sceneTestAdd(void) {
ecsid_t cube = ecsEntityAdd();
node = nodeAdd(cube);
meshrenderer_t *renderer = meshRendererAdd(cube);
renderer->mesh = &mesh;
renderer->mesh = &QUAD_MESH_SIMPLE;
}