33 lines
500 B
C++
33 lines
500 B
C++
#ifndef RENDERTARGET_H
|
|
#define RENDERTARGET_H
|
|
|
|
#include <stdint.h>
|
|
|
|
class Texture2D;
|
|
class RenderDevice;
|
|
|
|
class RenderTarget
|
|
{
|
|
friend class RenderDevice;
|
|
public:
|
|
// #TODO: Little hack
|
|
static void setDefaultFramebuffer();
|
|
|
|
public:
|
|
RenderTarget();
|
|
~RenderTarget();
|
|
|
|
void Create(const char* name = nullptr);
|
|
void Destroy();
|
|
|
|
void Finialize();
|
|
|
|
void AttachColorTexture(int slot, Texture2D* texture);
|
|
void AttachDepthTexture(Texture2D* texture);
|
|
|
|
private:
|
|
uint32_t m_framebuffer;
|
|
|
|
};
|
|
|
|
#endif |