Quick commit of a broken setup that doesn't work.
This commit is contained in:
parent
22c2b78fca
commit
753df69b4c
129 changed files with 16095 additions and 0 deletions
22
27-instancing/src/screen.hpp
Normal file
22
27-instancing/src/screen.hpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
#include "shader.hpp"
|
||||
|
||||
struct Screen {
|
||||
Shader shader;
|
||||
unsigned int target_VAO = 0;
|
||||
unsigned int target_VBO = 0;
|
||||
|
||||
float vertices[24] = {
|
||||
// vertex attributes for a quad that fills the entire screen in Normalized Device Coordinates.
|
||||
// positions // texCoords
|
||||
-1.0f, 1.0f, 0.0f, 1.0f,
|
||||
-1.0f, -1.0f, 0.0f, 0.0f,
|
||||
1.0f, -1.0f, 1.0f, 0.0f,
|
||||
|
||||
-1.0f, 1.0f, 0.0f, 1.0f,
|
||||
1.0f, -1.0f, 1.0f, 0.0f,
|
||||
1.0f, 1.0f, 1.0f, 1.0f
|
||||
};
|
||||
|
||||
void init();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue