projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch to raycast & bvh
[carveJwlIkooP6JGAAIwe30JlM.git]
/
model.h
diff --git
a/model.h
b/model.h
index 648554118ea613aedabd18582a301fbe3ef330b1..467ad989bffab99637ea0e1e00db7a4ed7aa7bce 100644
(file)
--- a/
model.h
+++ b/
model.h
@@
-7,7
+7,6
@@
typedef struct model model;
typedef struct glmesh glmesh;
typedef struct submodel submodel;
typedef struct model_vert model_vert;
typedef struct glmesh glmesh;
typedef struct submodel submodel;
typedef struct model_vert model_vert;
-typedef struct scene scene;
typedef struct sdf_primative sdf_primative;
typedef enum esdf_type esdf_type;
typedef struct sdf_primative sdf_primative;
typedef enum esdf_type esdf_type;
@@
-194,4
+193,11
@@
static void model_unpack( model *model, glmesh *mesh )
model_indice_base( model ), model->indice_count );
}
model_indice_base( model ), model->indice_count );
}
+static void mesh_free( glmesh *mesh )
+{
+ glDeleteVertexArrays( 1, &mesh->vao );
+ glDeleteBuffers( 1, &mesh->ebo );
+ glDeleteBuffers( 1, &mesh->vbo );
+}
+
#endif
#endif