From 67fe31d7511e762dac21801656c336add63a811a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 18 May 2020 18:47:38 +0200 Subject: OpenSubdiv: Refactor, move topology refiner to own folder In the future factory will also be moved there. --- intern/opensubdiv/opensubdiv_topology_refiner_capi.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'intern/opensubdiv/opensubdiv_topology_refiner_capi.h') 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. -- cgit v1.2.3