diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-05-18 19:47:38 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-05-27 13:07:15 +0300 |
commit | 67fe31d7511e762dac21801656c336add63a811a (patch) | |
tree | cb8712038996d669ab888da27a480cc19ca53942 /intern/opensubdiv/opensubdiv_topology_refiner_capi.h | |
parent | 7c0bea0d656eb4838ae2b5ebfed53cd1dae6cb12 (diff) |
OpenSubdiv: Refactor, move topology refiner to own folder
In the future factory will also be moved there.
Diffstat (limited to 'intern/opensubdiv/opensubdiv_topology_refiner_capi.h')
-rw-r--r-- | intern/opensubdiv/opensubdiv_topology_refiner_capi.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/intern/opensubdiv/opensubdiv_topology_refiner_capi.h b/intern/opensubdiv/opensubdiv_topology_refiner_capi.h index 38d722ab572..fe2f3f3ce2d 100644 --- a/intern/opensubdiv/opensubdiv_topology_refiner_capi.h +++ b/intern/opensubdiv/opensubdiv_topology_refiner_capi.h @@ -28,7 +28,7 @@ extern "C" { #endif struct OpenSubdiv_Converter; -struct OpenSubdiv_TopologyRefinerInternal; +struct OpenSubdiv_TopologyRefinerImpl; // Those settings don't really belong to OpenSubdiv's topology refiner, but // we are keeping track of them on our side of topology refiner. This is to @@ -40,6 +40,10 @@ typedef struct OpenSubdiv_TopologyRefinerSettings { int level; } OpenSubdiv_TopologyRefinerSettings; +// C-style wrapper around actual topology refiner. +// +// The only purpose is to allow C-only code to access C++ implementation of the +// topology refiner. typedef struct OpenSubdiv_TopologyRefiner { // Query subdivision level the refiner is created for. int (*getSubdivisionLevel)(const struct OpenSubdiv_TopologyRefiner *topology_refiner); @@ -125,11 +129,8 @@ typedef struct OpenSubdiv_TopologyRefiner { ////////////////////////////////////////////////////////////////////////////// // Internal use. - // Internal storage for the use in this module only. - // - // Tease: Contains actual OpenSubdiv's refiner and (optionally) some other - // data and state needed for an internbal use. - struct OpenSubdiv_TopologyRefinerInternal *internal; + // Implementation of the topology refiner. + struct OpenSubdiv_TopologyRefinerImpl *impl; } OpenSubdiv_TopologyRefiner; // NOTE: Will return NULL in cases of bad topology. |