mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
38 lines
685 B
C++
38 lines
685 B
C++
#ifndef EE_GRAPHICSCFRAMEBUFFERFBO_HPP
|
|
#define EE_GRAPHICSCFRAMEBUFFERFBO_HPP
|
|
|
|
#include "base.hpp"
|
|
#include "cframebuffer.hpp"
|
|
#include "ctexture.hpp"
|
|
|
|
namespace EE { namespace Graphics {
|
|
|
|
class EE_API cFrameBufferFBO : public cFrameBuffer {
|
|
public:
|
|
cFrameBufferFBO();
|
|
|
|
~cFrameBufferFBO();
|
|
|
|
cFrameBufferFBO( const Uint32& Width, const Uint32& Height, bool DepthBuffer = false );
|
|
|
|
bool Create( const Uint32& Width, const Uint32& Height );
|
|
|
|
bool Create( const Uint32& Width, const Uint32& Height, bool DepthBuffer );
|
|
|
|
void Bind();
|
|
|
|
void Unbind();
|
|
|
|
void Reload();
|
|
|
|
static bool IsSupported();
|
|
protected:
|
|
Int32 mFrameBuffer;
|
|
Uint32 mDepthBuffer;
|
|
};
|
|
|
|
}}
|
|
|
|
#endif
|
|
|