Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_gpencil_update_cache.h
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2022 Blender Foundation. */ | * Copyright 2022 Blender Foundation. */ | ||||
| #pragma once | #pragma once | ||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup bke | ||||
| */ | */ | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| #include "BLI_sys_types.h" /* for bool */ | #include "BLI_sys_types.h" /* for bool */ | ||||
| struct DLRBT_Tree; | struct DLRBT_Tree; | ||||
| struct GPencilUpdateCache; | struct bGPdata; | ||||
| struct bGPDframe; | |||||
| struct bGPDlayer; | struct bGPDlayer; | ||||
| struct bGPDframe; | |||||
| struct bGPDstroke; | struct bGPDstroke; | ||||
| struct bGPdata; | struct GPencilUpdateCache; | ||||
| /* GPencilUpdateCache.flag */ | /* GPencilUpdateCache.flag */ | ||||
| typedef enum eGPUpdateCacheNodeFlag { | typedef enum eGPUpdateCacheNodeFlag { | ||||
| /* Node is a placeholder (e.g. when only an index is needed). */ | /* Node is a placeholder (e.g. when only an index is needed). */ | ||||
| GP_UPDATE_NODE_NO_COPY = 0, | GP_UPDATE_NODE_NO_COPY = 0, | ||||
| /* Copy only element, not the content. */ | /* Copy only element, not the content. */ | ||||
| GP_UPDATE_NODE_LIGHT_COPY = 1, | GP_UPDATE_NODE_LIGHT_COPY = 1, | ||||
| /* Copy the element as well as all of its content. */ | /* Copy the element as well as all of its content. */ | ||||
| ▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | |||||
| * E.g. in order to tag a layer (gpl), the parameters would *have* to be (gpd, gpl, NULL, NULL). | * E.g. in order to tag a layer (gpl), the parameters would *have* to be (gpd, gpl, NULL, NULL). | ||||
| */ | */ | ||||
| void BKE_gpencil_tag_light_update(struct bGPdata *gpd, | void BKE_gpencil_tag_light_update(struct bGPdata *gpd, | ||||
| struct bGPDlayer *gpl, | struct bGPDlayer *gpl, | ||||
| struct bGPDframe *gpf, | struct bGPDframe *gpf, | ||||
| struct bGPDstroke *gps); | struct bGPDstroke *gps); | ||||
| /** | /** | ||||
| * | |||||
campbellbarton: Missing doc-strings. | |||||
| */ | |||||
| GPencilUpdateCache *BKE_gpencil_duplicate_update_cache_and_data(GPencilUpdateCache *gpd_cache); | |||||
| /** | |||||
| * | |||||
| */ | |||||
| bool BKE_gpencil_compare_update_caches(GPencilUpdateCache *cache_a, GPencilUpdateCache *cache_b); | |||||
| /** | |||||
| * Frees the GPencilUpdateCache on the gpd->runtime. This will not free the data that the cache | * Frees the GPencilUpdateCache on the gpd->runtime. This will not free the data that the cache | ||||
| * node might point to. It assumes that the cache does not own the data. | * node might point to. It assumes that the cache does not own the data. | ||||
| */ | */ | ||||
| void BKE_gpencil_free_update_cache(struct bGPdata *gpd); | void BKE_gpencil_free_update_cache(struct bGPdata *gpd); | ||||
| /** | |||||
| * | |||||
| */ | |||||
| void BKE_gpencil_free_update_cache_and_data(GPencilUpdateCache *cache); | |||||
| /** | |||||
| * | |||||
| */ | |||||
| void BKE_gpencil_print_update_cache(struct GPencilUpdateCache *cache); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
Missing doc-strings.