#pragma once #include "glew.h" #include #include class FBO { public: GLuint mFBO; std::map mBuffers; std::vector mDrawBuffers; public: FBO(); //hdr/normal color void AttachColorBuffer(const char*bufferName,GLenum attachment,GLenum dataType,int width,int height); void AttachDepthBuffer(const char*bufferName, int width, int height); //complete fbo settings void Finish(); void Bind(); void Unbind(); GLuint GetBuffer(const char*bufferName); };