|
|
|
@@ -37,10 +37,10 @@ struct Vertex { |
|
|
|
|
|
|
|
fn create_quad_array() -> Result<VertexArray, Error> { |
|
|
|
let vertices = &[ |
|
|
|
Vertex { x: -1.0, y: -1.0 }, |
|
|
|
Vertex { x: 1.0, y: -1.0 }, |
|
|
|
Vertex { x: 1.0, y: 1.0 }, |
|
|
|
Vertex { x: -1.0, y: 1.0 }, |
|
|
|
Vertex { x: -0.5, y: -0.5 }, |
|
|
|
Vertex { x: 0.5, y: -0.5 }, |
|
|
|
Vertex { x: 0.5, y: 0.5 }, |
|
|
|
Vertex { x: -0.5, y: 0.5 }, |
|
|
|
]; |
|
|
|
|
|
|
|
const STRIDE_POS: gl::GLsizei = size_of::<Vertex>() as gl::GLsizei; |
|
|
|
|