Blender V4.5
gpencil_cache_utils.cc File Reference
#include "DRW_engine.hh"
#include "DRW_render.hh"
#include "ED_view3d.hh"
#include "DNA_material_types.h"
#include "BKE_gpencil_legacy.h"
#include "BKE_grease_pencil.hh"
#include "BKE_material.hh"
#include "BKE_object.hh"
#include "BLI_ghash.h"
#include "BLI_hash.h"
#include "BLI_link_utils.h"
#include "BLI_math_color.h"
#include "BLI_math_matrix.h"
#include "BLI_math_vector.h"
#include "BLI_math_vector.hh"
#include "BLI_memblock.h"
#include "gpencil_engine_private.hh"
#include "DEG_depsgraph.hh"
#include "UI_resources.hh"
#include "../../blenlib/intern/list_sort_impl.h"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::draw
 
namespace  blender::draw::gpencil
 

Functions

Layer
static float blender::draw::gpencil::grease_pencil_layer_final_opacity_get (const Instance *inst, const Object *ob, const GreasePencil &grease_pencil, const bke::greasepencil::Layer &layer)
 
static float4 blender::draw::gpencil::grease_pencil_layer_final_tint_and_alpha_get (const Instance *inst, const GreasePencil &grease_pencil, const int onion_id, float *r_alpha)
 
static void blender::draw::gpencil::grease_pencil_layer_random_color_get (const Object *ob, const bke::greasepencil::Layer &layer, float r_color[3])
 
tLayerblender::draw::gpencil::grease_pencil_layer_cache_get (tObject *tgp_ob, int layer_id, const bool skip_onion)
 
tLayerblender::draw::gpencil::grease_pencil_layer_cache_add (Instance *inst, const Object *ob, const bke::greasepencil::Layer &layer, const int onion_id, const bool is_used_as_mask, tObject *tgp_ob)
 

Object

#define SORT_IMPL_LINKTYPE   tObject
 
#define SORT_IMPL_FUNC   gpencil_tobject_sort_fn_r
 
tObjectblender::draw::gpencil::gpencil_object_cache_add (Instance *inst, Object *ob, const bool is_stroke_order_3d, const Bounds< float3 > bounds)
 
static int blender::draw::gpencil::gpencil_tobject_dist_sort (const void *a, const void *b)
 
void blender::draw::gpencil::gpencil_object_cache_sort (Instance *inst)
 

Macro Definition Documentation

◆ SORT_IMPL_FUNC

#define SORT_IMPL_FUNC   gpencil_tobject_sort_fn_r

Definition at line 126 of file gpencil_cache_utils.cc.

◆ SORT_IMPL_LINKTYPE

#define SORT_IMPL_LINKTYPE   tObject

Definition at line 124 of file gpencil_cache_utils.cc.