31 lines
561 B
C++
Executable File
31 lines
561 B
C++
Executable File
#ifndef SCREEN_H
|
|
#define SCREEN_H
|
|
|
|
#include "../SCENE/Model3D.hpp"
|
|
#include "PseudoContext.h"
|
|
|
|
class Screen: public PseudoContext {
|
|
|
|
private:
|
|
|
|
//aux
|
|
GLuint inputTexture = 0;
|
|
GLuint quadVAO, vertVBO;
|
|
GLuint program2;
|
|
GLuint shaderTexId;
|
|
GLfloat quadVerts[18] = {
|
|
-1.0f, -1.0f, -1.0f,
|
|
1.0f, -1.0f, -1.0f,
|
|
-1.0f, 1.0f, -1.0f,
|
|
-1.0f, 1.0f, -1.0f,
|
|
1.0f, -1.0f, -1.0f,
|
|
1.0f, 1.0f, -1.0f
|
|
};
|
|
|
|
public:
|
|
Screen(int left, int top, int width, int height);
|
|
void setInputTexture(GLuint inputTexture);
|
|
void draw();
|
|
};
|
|
|
|
#endif |