summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rendering.cc12
-rw-r--r--src/rendering.h18
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);