mirror of https://github.com/axmolengine/axmol.git
29 lines
489 B
C++
29 lines
489 B
C++
#pragma once
|
|
#include "../RenderTarget.h"
|
|
#include "platform/GL.h"
|
|
#include "OpenGLState.h"
|
|
|
|
NS_AX_BACKEND_BEGIN
|
|
|
|
class DriverGL;
|
|
|
|
class RenderTargetGL : public RenderTarget
|
|
{
|
|
public:
|
|
/*
|
|
* generateFBO, false, use for screen framebuffer
|
|
*/
|
|
RenderTargetGL(bool defaultRenderTarget, DriverGL* driver);
|
|
~RenderTargetGL();
|
|
|
|
void bindFrameBuffer() const;
|
|
void unbindFrameBuffer() const;
|
|
|
|
void update() const;
|
|
|
|
public:
|
|
GLuint _FBO = 0;
|
|
};
|
|
|
|
NS_AX_BACKEND_END
|