flake-engine 0.1.1

Immediate-mode game framework built on wgpu + winit
1
2
3
4
5
6
7
8
9
10
11
use crate::model::vertex::Vertex;

pub const TRI_VERTICES: &[Vertex] = &[
    Vertex { position: [0.0, 1.0, 0.0], tex_coords: [0.0, 0.0] }, // bottom-left
    Vertex { position: [0.5, 0.0, 0.0], tex_coords: [1.0, 0.0] }, // top-middle
    Vertex { position: [1.0, 1.0, 0.0], tex_coords: [1.0, 1.0] }, // bottom-right
];

pub const TRI_INDICES: &[u16] = &[
    0, 1, 2,
];