mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
Created a backend system for the window-input management. So now it will be a los easier to port to another windows library/platform. Since this is a big commit, it's probably that some bugs where introduced, but i tested all that i could, and it's working fine. I'll probably add a cursor manager backend because right now there is no cursor management at all, i removed the CreateCursor function because it was unusable.
38 lines
735 B
C++
38 lines
735 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( cWindow * window = NULL );
|
|
|
|
~cFrameBufferFBO();
|
|
|
|
cFrameBufferFBO( const Uint32& Width, const Uint32& Height, bool DepthBuffer = false, cWindow * window = NULL );
|
|
|
|
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
|
|
|