Initial upload

This commit is contained in:
2025-04-15 11:29:46 +09:00
commit b915d56f73
212 changed files with 43262 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#ifndef RENDERTARGET_H
#define RENDERTARGET_H
#include "cglm/types-struct.h"
#include <stdint.h>
typedef struct
{
vec4s* buffer;
uint32_t width;
uint32_t height;
} render_target_t;
render_target_t render_target_create(uint32_t width, uint32_t height);
vec4s render_target_get_pixel(render_target_t* render_target, uint32_t x, uint32_t y);
void render_target_set_pixel(render_target_t* render_target, uint32_t x, uint32_t y, vec4s color);
void render_target_free(render_target_t* target);
#endif // RENDERTARGET_H