Blender V4.3
type_convert.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2018 Blender Foundation
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 *
5 * Author: Sergey Sharybin. */
6
7#ifndef OPENSUBDIV_BASE_TYPE_CONVERT_H_
8#define OPENSUBDIV_BASE_TYPE_CONVERT_H_
9
10#ifdef _MSC_VER
11# include <iso646.h>
12#endif
13
14#include <opensubdiv/sdc/options.h>
15#include <opensubdiv/sdc/types.h>
16
18
20
21namespace blender::opensubdiv {
22
23// Convert scheme type from C-API enum to an OpenSubdiv native enum.
24OpenSubdiv::Sdc::SchemeType getSchemeTypeFromCAPI(OpenSubdiv_SchemeType type);
25
26// Convert face-varying interpolation type from C-API to an OpenSubdiv
27// native enum.
28OpenSubdiv::Sdc::Options::FVarLinearInterpolation getFVarLinearInterpolationFromCAPI(
29 OpenSubdiv_FVarLinearInterpolation linear_interpolation);
30
31// Similar to above, just other way around.
33 OpenSubdiv::Sdc::Options::FVarLinearInterpolation linear_interpolation);
34
35OpenSubdiv::Sdc::Options::VtxBoundaryInterpolation getVtxBoundaryInterpolationFromCAPI(
36 OpenSubdiv_VtxBoundaryInterpolation boundary_interpolation);
37
38} // namespace blender::opensubdiv
39
40#endif // OPENSUBDIV_BASE_TYPE_CONVERT_H_
OpenSubdiv_FVarLinearInterpolation getCAPIFVarLinearInterpolationFromOSD(OpenSubdiv::Sdc::Options::FVarLinearInterpolation linear_interpolation)
OpenSubdiv::Sdc::Options::VtxBoundaryInterpolation getVtxBoundaryInterpolationFromCAPI(OpenSubdiv_VtxBoundaryInterpolation boundary_interpolation)
OpenSubdiv::Sdc::SchemeType getSchemeTypeFromCAPI(OpenSubdiv_SchemeType type)
OpenSubdiv::Sdc::Options::FVarLinearInterpolation getFVarLinearInterpolationFromCAPI(OpenSubdiv_FVarLinearInterpolation linear_interpolation)
OpenSubdiv_FVarLinearInterpolation
OpenSubdiv_VtxBoundaryInterpolation
OpenSubdiv_SchemeType