Implement raytraced lightmap
This commit is contained in:
@@ -21,8 +21,10 @@ public:
|
||||
bool create(int width, int height, int tex = -1, GLint internal_format = GL_RGBA8);
|
||||
bool recreate() { return create(w, h); }
|
||||
void clear(glm::vec4 color = glm::vec4(0));
|
||||
void readTextureData(uint8_t* buffer);
|
||||
uint8_t* readTextureData(uint8_t* buffer = nullptr);
|
||||
float* readTextureDataFloat(float* buffer = nullptr);
|
||||
uint8_t* createBuffer();
|
||||
float* createBufferFloat();
|
||||
void bindFramebuffer();
|
||||
void unbindFramebuffer();
|
||||
void bindTexture();
|
||||
|
||||
Reference in New Issue
Block a user