flake-engine 0.1.1

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

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

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