Initial sources
This commit is contained in:
33
engine/render/rendertarget.h
Normal file
33
engine/render/rendertarget.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user