DerivedMesh: minor changes to callback use

- use void instead of float for array arg (cast in the switch statement)
- remove unused args
- use const for poly-mapping and user_data args
This commit is contained in:
2015-07-15 12:42:41 +10:00
parent 7407ed7637
commit 72c7e12a5d
4 changed files with 62 additions and 55 deletions

View File

@@ -464,7 +464,8 @@ struct DerivedMesh {
bool (*setFace)(void *userData, int index), void *userData);
struct GPUDrawObject *(*gpuObjectNew)(DerivedMesh *dm);
void (*copy_gpu_data)(DerivedMesh *dm, int type, float *varray, int *mat_orig_to_new, void *user_data);
void (*copy_gpu_data)(DerivedMesh *dm, int type, void *varray_p,
const int *mat_orig_to_new, const void *user_data);
/** Release reference to the DerivedMesh. This function decides internally
* if the DerivedMesh will be freed, or cached for later use. */