X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrtris;a=blobdiff_plain;f=src%2Fcmesh.h;h=ba3c97d0eb6cbb23b74018482bcd980f753056dd;hp=4531d0bc04cd4a80baa6f88cf2ccefb45319fc2d;hb=7af9cfb135026931d52f48fb9f0667afa13f0bba;hpb=6ad6cf2cb2e82d8dcc1535a031a38eb991d2b396 diff --git a/src/cmesh.h b/src/cmesh.h index 4531d0b..ba3c97d 100644 --- a/src/cmesh.h +++ b/src/cmesh.h @@ -33,9 +33,9 @@ int cmesh_init(struct cmesh *cm); void cmesh_destroy(struct cmesh *cm); void cmesh_clear(struct cmesh *cm); -void cmesh_copy(struct cmesh *cmdest, struct cmesh *cmsrc); +int cmesh_clone(struct cmesh *cmdest, struct cmesh *cmsrc); -void cmesh_set_name(struct cmesh *cm, const char *name); +int cmesh_set_name(struct cmesh *cm, const char *name); const char *cmesh_name(struct cmesh *cm); int cmesh_has_attrib(struct cmesh *cm, int attr); @@ -61,18 +61,18 @@ int cmesh_index_count(struct cmesh *cm); int get_poly_count(struct cmesh *cm); /* attr can be -1 to invalidate all attributes */ -void cmesh_invalidate_attrib(struct cmesh *cm, int attr); -void cmesh_invalidate_index(struct cmesh *cm); +void cmesh_invalidate_vbo(struct cmesh *cm, int attr); +void cmesh_invalidate_ibo(struct cmesh *cm); int cmesh_append(struct cmesh *cmdest, struct cmesh *cmsrc); /* immediate-mode style mesh construction interface */ int cmesh_vertex(struct cmesh *cm, float x, float y, float z); -int cmesh_normal(struct cmesh *cm, float nx, float ny, float nz); -int cmesh_tangent(struct cmesh *cm, float tx, float ty, float tz); -int cmesh_texcoord(struct cmesh *cm, float u, float v, float w); -int cmesh_boneweights(struct cmesh *cm, float w1, float w2, float w3, float w4); -int cmesh_boneidx(struct cmesh *cm, int idx1, int idx2, int idx3, int idx4); +void cmesh_normal(struct cmesh *cm, float nx, float ny, float nz); +void cmesh_tangent(struct cmesh *cm, float tx, float ty, float tz); +void cmesh_texcoord(struct cmesh *cm, float u, float v, float w); +void cmesh_boneweights(struct cmesh *cm, float w1, float w2, float w3, float w4); +void cmesh_boneidx(struct cmesh *cm, int idx1, int idx2, int idx3, int idx4); /* dir_xform can be null, in which case it's calculated from xform */ void cmesh_apply_xform(struct cmesh *cm, float *xform, float *dir_xform);