22 lines
495 B
C++
22 lines
495 B
C++
#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();
|
|
};
|