Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_DerivedMesh.h
| Show First 20 Lines • Show All 430 Lines • ▼ Show 20 Lines | struct DerivedMesh { | ||||
| /** Draw mapped edges as lines with interpolation values | /** Draw mapped edges as lines with interpolation values | ||||
| * - Only if !setDrawOptions or | * - Only if !setDrawOptions or | ||||
| * setDrawOptions(userData, mapped-edge, mapped-v0, mapped-v1, t) | * setDrawOptions(userData, mapped-edge, mapped-v0, mapped-v1, t) | ||||
| * returns true | * returns true | ||||
| * | * | ||||
| * NOTE: This routine is optional! | * NOTE: This routine is optional! | ||||
| */ | */ | ||||
| void (*drawMappedEdgesInterp)(DerivedMesh *dm, | void (*drawMappedEdgesInterp)(struct Object *ob, | ||||
aligorith: I'm not sure that it's good idea (or even necessary) to be passing in an object pointer here. | |||||
campbellbartonUnsubmitted Not Done Inline ActionsAgree, however I dont think its even needed - BMEditMesh has an object pointer. campbellbarton: Agree, however I dont think its even needed - `BMEditMesh` has an object pointer. | |||||
| DerivedMesh *dm, | |||||
| DMSetDrawOptions setDrawOptions, | DMSetDrawOptions setDrawOptions, | ||||
| DMSetDrawInterpOptions setDrawInterpOptions, | DMSetDrawInterpOptions setDrawInterpOptions, | ||||
| void *userData); | void *userData, | ||||
| const char dt); | |||||
| /** Draw all faces with materials | /** Draw all faces with materials | ||||
| * - setMaterial is called for every different material nr | * - setMaterial is called for every different material nr | ||||
| * - setFace is called to verify if a face must be hidden | * - setFace is called to verify if a face must be hidden | ||||
| */ | */ | ||||
| void (*drawMappedFacesMat)(DerivedMesh *dm, | void (*drawMappedFacesMat)(DerivedMesh *dm, | ||||
| void (*setMaterial)(void *userData, int, void *attribs), | void (*setMaterial)(void *userData, int, void *attribs), | ||||
| bool (*setFace)(void *userData, int index), void *userData); | bool (*setFace)(void *userData, int index), void *userData); | ||||
| ▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines | |||||
I'm not sure that it's good idea (or even necessary) to be passing in an object pointer here. Some reasons:
Some better options are: