initial commit

This commit is contained in:
Bruno C. 2026-01-17 23:44:01 -03:00
commit 5e83dec47d
7 changed files with 5731 additions and 0 deletions

30
buffers.h Normal file
View file

@ -0,0 +1,30 @@
#pragma once
#include <stdint.h>
#include "include/glad/gl.h"
struct cw_vertex_array {
GLuint id;
};
struct cw_vertex_buffer {
GLuint id;
};
struct cw_index_buffer {
GLuint id;
};
// Vertex Array
void cw_vertex_array_init(struct cw_vertex_array *self);
void cw_vertex_array_deinit(struct cw_vertex_array *self);
void cw_vertex_array_bind(struct cw_vertex_array *self);
void cw_vertex_array_unbind(struct cw_vertex_array *self);
// Vertex Buffer
void cw_vertex_buffer_init(struct cw_vertex_buffer *self);
void cw_vertex_buffer_deinit(struct cw_vertex_buffer *self);
// Index Buffer
void cw_index_buffer_init(struct cw_index_buffer *self, uint32_t* indices, uint32_t count);
void cw_index_buffer_deinit(struct cw_index_buffer *self);