couch/core/Screen.h

30 lines
428 B
C
Raw Permalink Normal View History

2021-01-19 16:01:37 -06:00
#ifndef SCREEN_H
#define SCREEN_H
#include <iostream>
#include <stdlib.h>
#include <GL/glew.h>
#include "types.h"
2021-03-09 16:40:21 -06:00
#include "Framebuffer.h"
2021-01-19 16:01:37 -06:00
#include "Vertex.h"
#include "Material.h"
class Screen {
public:
Screen();
void Enable();
2021-03-09 16:40:21 -06:00
void Disable();
2021-01-19 16:01:37 -06:00
void Draw();
const int width = 640;
const int height = 480;
Texture tex;
private:
Id quad;
2021-03-09 16:40:21 -06:00
Framebuffer framebuffer;
2021-01-19 16:01:37 -06:00
Id renderbuffer;
};
#endif /* SCREEN_H */