Initial sources

This commit is contained in:
2025-02-28 04:43:17 +03:00
commit d9437c8619
34 changed files with 18207 additions and 0 deletions

View 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