Textured quad.

This commit is contained in:
2025-11-25 19:15:18 +01:00
parent 28ca7625b8
commit d987f31769
6 changed files with 149 additions and 12 deletions

View File

@@ -8,11 +8,8 @@ Mesh :: struct {
Mesh_Handle :: distinct u32
Buffer_Handle :: distinct u32
Vertex :: distinct [3]f32
Index :: distinct u32
create_mesh :: proc(renderer: ^Renderer, vertices: []Vertex, indices: []Index) -> (Mesh, bool) { // TODO: SS - Should probably return a Mesh_Handle.
create_mesh :: proc(renderer: ^Renderer, vertices: []f32, indices: []u32) -> (Mesh, bool) { // TODO: SS - Should probably return a Mesh_Handle.
mesh: Mesh
if len(vertices) == 0 {