This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenkernel/BKE_curvemapping_cache.h
Joseph Eagar f52ed67289 Sculpt: fixed dyntopo speed issue
* PBVH_UpdateTopology is now properly cleared in all cases.
* BKE_curvemapping_cache.h no longer provides a global curve
  cache, the brush system now allocates its own on startup.
2021-09-30 21:30:15 -07:00

25 lines
1000 B
C++

struct GHash;
struct CurveMapping;
typedef struct CurveMappingCache {
struct GHash *gh;
} CurveMappingCache;
bool BKE_curvemapping_equals(const struct CurveMapping *a, const struct CurveMapping *b);
uint BKE_curvemapping_calc_hash(const struct CurveMapping *cumap);
CurveMappingCache *BKE_curvemapping_cache_create(void);
CurveMapping *BKE_curvemapping_cache_get(CurveMappingCache *cache,
CurveMapping *curve,
bool free_input);
void BKE_curvemapping_cache_free(CurveMappingCache *cache);
// takes a curve that's already in the cache and increases its user count
void BKE_curvemapping_cache_aquire(CurveMappingCache *cache, CurveMapping *curve);
void BKE_curvemapping_cache_release(CurveMappingCache *cache, CurveMapping *curve);
bool BKE_curvemapping_in_cache(CurveMapping *curve);
void BKE_curvemapping_cache_release_or_free(CurveMappingCache *cache, CurveMapping *curve);
void BKE_curvemapping_cache_exit();