Blender V5.3
blender::bke::greasepencil::DrawingRuntime Class Reference

#include <BKE_grease_pencil.hh>

Public Attributes

SharedCache< std::optional< FillCache > > fill_cache
SharedCache< std::optional< TriangleCache > > triangle_cache
SharedCache< Vector< float3 > > curve_plane_normals_cache
SharedCache< Vector< float4x2 > > curve_texture_matrices
std::atomic< int > user_count = 1
bool fake_user = false

Detailed Description

Definition at line 98 of file BKE_grease_pencil.hh.

Member Data Documentation

◆ curve_plane_normals_cache

◆ curve_texture_matrices

◆ fake_user

bool blender::bke::greasepencil::DrawingRuntime::fake_user = false
mutable

◆ fill_cache

◆ triangle_cache

◆ user_count

std::atomic<int> blender::bke::greasepencil::DrawingRuntime::user_count = 1
mutable

Number of users for this drawing. The users are the frames in the Grease Pencil layers. Different frames can refer to the same drawing, so we need to make sure we count these users and remove a drawing if it has zero users.

Examples
/usr/src/RPM/BUILD/blender5.3-5.3.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 127 of file BKE_grease_pencil.hh.

Referenced by blender::bke::greasepencil::Drawing::add_user(), blender::grease_pencil_initialize_drawing_user_counts(), blender::bke::greasepencil::Drawing::has_users(), blender::bke::greasepencil::Drawing::is_instanced(), blender::bke::greasepencil::Drawing::remove_user(), and blender::bke::greasepencil::Drawing::user_count().


The documentation for this class was generated from the following file: