First working animations, but lots of bugs and refactoring needed.
This commit is contained in:
parent
8b41591360
commit
a1c8208b47
158 changed files with 17271 additions and 0 deletions
23
45-animation/src/screen.hpp
Normal file
23
45-animation/src/screen.hpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
#include "shader.hpp"
|
||||
|
||||
struct Screen {
|
||||
Shader shader;
|
||||
unsigned int target_VAO = 0;
|
||||
unsigned int target_VBO = 0;
|
||||
unsigned int texture_id = 10;
|
||||
|
||||
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