Changeset View
Changeset View
Standalone View
Standalone View
intern/opensubdiv/opensubdiv_converter_capi.h
| Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | typedef struct OpenSubdiv_Converter { | ||||
| 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 corresponding 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); | ||||
| ////////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////////// | ||||
| // Extra Vertex Data | |||||
| int (*getNumExtraVertexData)(const struct OpenSubdiv_Converter *converter); | |||||
| ////////////////////////////////////////////////////////////////////////////// | |||||
| // 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_ */ | ||||