projects
/
vrtris
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesh
[vrtris]
/
src
/
cmesh.h
diff --git
a/src/cmesh.h
b/src/cmesh.h
index
ba3c97d
..
2039e10
100644
(file)
--- a/
src/cmesh.h
+++ b/
src/cmesh.h
@@
-46,8
+46,10
@@
int cmesh_indexed(struct cmesh *cm);
*/
float *cmesh_set_attrib(struct cmesh *cm, int attr, int nelem, unsigned int num,
const float *vdata);
*/
float *cmesh_set_attrib(struct cmesh *cm, int attr, int nelem, unsigned int num,
const float *vdata);
-float *cmesh_attrib(struct cmesh *cm, int attr); /* invalidates VBO */
+float *cmesh_attrib(struct cmesh *cm, int attr); /* invalidates VBO */
const float *cmesh_attrib_ro(struct cmesh *cm, int attr); /* doesn't invalidate */
const float *cmesh_attrib_ro(struct cmesh *cm, int attr); /* doesn't invalidate */
+float *cmesh_attrib_at(struct cmesh *cm, int attr, int idx);
+const float *cmesh_attrib_at_ro(struct cmesh *cm, int attr, int idx);
int cmesh_attrib_count(struct cmesh *cm, int attr);
/* indices can be 0, in which case only memory is allocated
int cmesh_attrib_count(struct cmesh *cm, int attr);
/* indices can be 0, in which case only memory is allocated