Textured quad.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user