added render target and bezier classes, added stroke settings panel
This commit is contained in:
28
engine/rtt.h
Normal file
28
engine/rtt.h
Normal 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; }
|
||||
};
|
||||
Reference in New Issue
Block a user