diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 23:27:23 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 23:27:23 +0100 |
| commit | 97d4714a5078c0472350981f0ae02c58ee66eff9 (patch) | |
| tree | e8a7e06f115f09e6007dbaaf5df22198447ff6b0 | |
| parent | 8536bcc71498c9109ef4254760edc4cd70ddcccd (diff) | |
i hate vaos
| -rw-r--r-- | src/rendering.cc | 12 | ||||
| -rw-r--r-- | src/rendering.h | 18 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/rendering.cc b/src/rendering.cc index 06a40c7..e916d31 100644 --- a/src/rendering.cc +++ b/src/rendering.cc @@ -202,15 +202,3 @@ void wayc_ebo_deinit(ebo_t* ebo) { wayc_notnull(ebo); glDeleteBuffers(1, ebo); } - -bool wayc_vao_init(vao_t* vao, vbo_t vbo, ebo_t ebo, const vao_attr_s* attrs, - u32 attr_count) { - wayc_notnull(vao); - wayc_notnull(attrs); - - glCreateVertexArrays(1, vao); - if (*vao == 0) return false; -} - -void wayc_vao_use(vao_t vao); -void wayc_vao_deinit(vao_t* vao);
\ No newline at end of file diff --git a/src/rendering.h b/src/rendering.h index 145fe60..a3982cf 100644 --- a/src/rendering.h +++ b/src/rendering.h @@ -93,21 +93,3 @@ bool wayc_ebo_init(ebo_t* ebo, usize size); bool wayc_ebo_upload(ebo_t ebo, usize offset, usize size, const u8* data); void wayc_ebo_use(ebo_t ebo); void wayc_ebo_deinit(ebo_t* ebo); - -typedef u32 vao_t; - -enum vao_attr_type_e { - VAO_ATTR_TYPE_FLOAT = GL_FLOAT, -}; - -struct vao_attr_s { - u32 size; - vao_attr_type_e type; - bool normalized; - u32 offset; -}; - -bool wayc_vao_init(vao_t* vao, vbo_t vbo, ebo_t ebo, const vao_attr_s* attrs, - u32 attr_count); -void wayc_vao_use(vao_t vao); -void wayc_vao_deinit(vao_t* vao); |
