Changeset View
Changeset View
Standalone View
Standalone View
intern/opensubdiv/opensubdiv_converter_capi.h
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | typedef struct OpenSubdiv_Converter { | ||||
| // allowing to free cached data. | // allowing to free cached data. | ||||
| void (*precalcUVLayer)(const struct OpenSubdiv_Converter *converter, const int layer_index); | void (*precalcUVLayer)(const struct OpenSubdiv_Converter *converter, const int layer_index); | ||||
| void (*finishUVLayer)(const struct OpenSubdiv_Converter *converter); | void (*finishUVLayer)(const struct OpenSubdiv_Converter *converter); | ||||
| // Get number of UV coordinates in the current layer (layer which was | // Get number of UV coordinates in the current layer (layer which was | ||||
| // specified in precalcUVLayer(). | // specified in precalcUVLayer(). | ||||
| int (*getNumUVCoordinates)(const struct OpenSubdiv_Converter *converter); | int (*getNumUVCoordinates)(const struct OpenSubdiv_Converter *converter); | ||||
| // For the given face index and its corner (known as loop in Blender) | // For the given face index and its corner (known as loop in Blender) | ||||
| // get corrsponding UV coordinate index. | // get corresponding UV coordinate index. | ||||
| int (*getFaceCornerUVIndex)(const struct OpenSubdiv_Converter *converter, | int (*getFaceCornerUVIndex)(const struct OpenSubdiv_Converter *converter, | ||||
| const int face_index, | const int face_index, | ||||
| const int corner_index); | const int corner_index); | ||||
| ////////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////////// | ||||
| // User data associated with this converter. | // User data associated with this converter. | ||||
| void (*freeUserData)(const struct OpenSubdiv_Converter *converter); | void (*freeUserData)(const struct OpenSubdiv_Converter *converter); | ||||
| void *user_data; | void *user_data; | ||||
| } OpenSubdiv_Converter; | } OpenSubdiv_Converter; | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* OPENSUBDIV_CONVERTER_CAPI_H_ */ | #endif /* OPENSUBDIV_CONVERTER_CAPI_H_ */ | ||||