axmol/core/renderer/backend/opengl/RenderTargetGL.h

28 lines
468 B
C++

#pragma once
#include "../RenderTarget.h"
#include "platform/CCGL.h"
NS_AX_BACKEND_BEGIN
class DeviceGL;
class RenderTargetGL : public RenderTarget
{
public:
/*
* generateFBO, false, use for screen framebuffer
*/
RenderTargetGL(bool defaultRenderTarget, DeviceGL* deviceGL);
~RenderTargetGL();
void bindFrameBuffer() const;
void unbindFrameBuffer() const;
void update() const;
public:
GLuint _FBO = 0;
};
NS_AX_BACKEND_END