#pragma once #include "ggl.h" class FrameBufferObject { public: GLuint mFrameBufferObject; GLint mPrevFrameBuffer; std::map mBuffers; std::vector 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); };