You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
474 B
17 lines
474 B
#pragma once
|
|
#include "ggl.h"
|
|
class FrameBufferObject {
|
|
public:
|
|
GLuint mFrameBufferObject;
|
|
GLint mPrevFrameBuffer;
|
|
std::map<std::string, GLuint> mBuffers;
|
|
std::vector<GLenum> mDrawBuffers;
|
|
public:
|
|
FrameBufferObject();
|
|
void AttachColorBuffer(const char*bufferName, GLenum attachment, int width, int height);
|
|
void AttachDepthBuffer(const char*bufferName, int width, int height);
|
|
void Finish();
|
|
void Bind();
|
|
void Unbind();
|
|
GLuint GetBuffer(const char*bufferName);
|
|
};
|