added render target and bezier classes, added stroke settings panel

This commit is contained in:
2017-03-24 03:15:29 +00:00
parent 03a5212e56
commit a2cb0ecafe
16 changed files with 798 additions and 67 deletions

28
engine/rtt.h Normal file
View File

@@ -0,0 +1,28 @@
#pragma once
class RTT
{
GLuint fboID;
GLuint rboID;
GLuint texID;
int w;
int h;
public:
RTT();
~RTT();
void destroy();
bool create(int width, int height, int tex = -1);
void clear(glm::vec4 color = glm::vec4(0));
void readTextureData(uint8_t* buffer);
uint8_t* createBuffer();
void bindFramebuffer();
void unbindFramebuffer();
void bindTexture();
void unbindTexture();
GLuint getTextureID() { return texID; }
int getWidth() { return w; }
int getHeight() { return h; }
GLuint getFBO() { return fboID; }
};