Initial commit

This commit is contained in:
TheCherno
2025-02-26 20:23:26 +11:00
parent 30710362ed
commit 9e6f7d5e8d
10 changed files with 414 additions and 2 deletions

23
App/Source/Renderer.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include <glad/gl.h>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
struct Texture
{
GLuint Handle = 0;
uint32_t Width = 0;
uint32_t Height = 0;
};
struct Framebuffer
{
GLuint Handle = 0;
Texture ColorAttachment;
};
Texture CreateTexture(int width, int height);
Framebuffer CreateFramebufferWithTexture(const Texture texture);
bool AttachTextureToFramebuffer(Framebuffer& framebuffer, const Texture texture);
void BlitFramebufferToSwapchain(const Framebuffer framebuffer);