summaryrefslogtreecommitdiff
path: root/src/render/immediate.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-10 14:06:15 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-10 14:06:15 +1000
commit9cb4bfacc69b2a95ce8e9250afc33fb04d1ba548 (patch)
treefbe75da188ac83b34153ac79c367b9d57e0d5ff9 /src/render/immediate.c
parent071a635e63536e50abfad7d5aeca1208dba58025 (diff)
remove old code
Diffstat (limited to 'src/render/immediate.c')
-rw-r--r--src/render/immediate.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/render/immediate.c b/src/render/immediate.c
deleted file mode 100644
index 63a62b8..0000000
--- a/src/render/immediate.c
+++ /dev/null
@@ -1,46 +0,0 @@
-#include "immediate.h"
-#include "glad/glad.h"
-#include "maths.h"
-#include "primitives.h"
-#include "ral_types.h"
-#include "render.h"
-#include "render_types.h"
-
-typedef struct immdraw_system {
- // primitive meshes (get reused for each draw call)
- mesh plane;
- mesh cube;
- mesh sphere;
- // command lists
-
-} immdraw_system;
-
-bool immdraw_system_init(immdraw_system* state) {
- geometry_data plane_geometry = geo_create_plane(f32x2(1, 1));
- state->plane = mesh_create(&plane_geometry, true);
-
- geometry_data cube_geometry = geo_create_cuboid(f32x3(1, 1, 1));
- state->cube = mesh_create(&cube_geometry, true);
-
- geometry_data sphere_geometry = geo_create_uvsphere(1.0, 48, 48);
- state->sphere = mesh_create(&sphere_geometry, true);
-
- return true;
-}
-
-void immdraw_plane(vec3 pos, quat rotation, f32 u_scale, f32 v_scale, vec4 colour) {}
-
-void immdraw_system_render(immdraw_system* state) {}
-
-// void imm_draw_sphere(vec3 pos, f32 radius, vec4 colour) {
-// // Create the vertices
-// geometry_data geometry = geo_create_uvsphere(radius, 16, 16);
-// geo_set_vertex_colours(&geometry, colour);
-
-// // Upload to GPU
-// mat4 model = mat4_translation(pos);
-
-// // Set pipeline
-
-// // Draw
-// } \ No newline at end of file