From c64262a05ab0e9a7c5b69fc83ea53fb5825f442c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 17 Jul 2018 18:06:32 +0200 Subject: OpenSubdiv: Add API to evaluate face-varying data There are move changes along the line to keep everything working from from C. --- intern/opensubdiv/opensubdiv_capi_type.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'intern/opensubdiv/opensubdiv_capi_type.h') diff --git a/intern/opensubdiv/opensubdiv_capi_type.h b/intern/opensubdiv/opensubdiv_capi_type.h index 04fe2afff53..b326e53e168 100644 --- a/intern/opensubdiv/opensubdiv_capi_type.h +++ b/intern/opensubdiv/opensubdiv_capi_type.h @@ -34,6 +34,21 @@ typedef enum eOpenSubdivEvaluator { OPENSUBDIV_EVALUATOR_GLSL_COMPUTE = (1 << 5), } eOpenSubdivEvaluator; +typedef enum OpenSubdiv_SchemeType { + OSD_SCHEME_BILINEAR, + OSD_SCHEME_CATMARK, + OSD_SCHEME_LOOP, +} OpenSubdiv_SchemeType; + +typedef enum OpenSubdiv_FVarLinearInterpolation { + OSD_FVAR_LINEAR_INTERPOLATION_NONE, + OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY, + OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS1, + OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS2, + OSD_FVAR_LINEAR_INTERPOLATION_BOUNDARIES, + OSD_FVAR_LINEAR_INTERPOLATION_ALL, +} OpenSubdiv_FVarLinearInterpolation; + #ifdef __cplusplus } #endif -- cgit v1.2.3