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

#include <BKE_grease_pencil.hh>

Public Attributes

SharedCache< Vector< int > > triangle_offsets_cache
 
SharedCache< Vector< uint3 > > triangles_cache
 
SharedCache< Vector< float3 > > curve_plane_normals_cache
 
SharedCache< Vector< float4x2 > > curve_texture_matrices
 
std::atomic< intuser_count = 1
 

Detailed Description

Definition at line 52 of file BKE_grease_pencil.hh.

Member Data Documentation

◆ curve_plane_normals_cache

SharedCache<Vector<float3> > blender::bke::greasepencil::DrawingRuntime::curve_plane_normals_cache
mutable

Normal vector cache for every stroke. Computed using Newell's method.

Examples
/usr/src/RPM/BUILD/blender-4.3.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 66 of file BKE_grease_pencil.hh.

◆ curve_texture_matrices

SharedCache<Vector<float4x2> > blender::bke::greasepencil::DrawingRuntime::curve_texture_matrices
mutable

◆ triangle_offsets_cache

SharedCache<Vector<int> > blender::bke::greasepencil::DrawingRuntime::triangle_offsets_cache
mutable

Triangle offset cache for all the strokes in the drawing.

Examples
/usr/src/RPM/BUILD/blender-4.3.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 57 of file BKE_grease_pencil.hh.

◆ triangles_cache

SharedCache<Vector<uint3> > blender::bke::greasepencil::DrawingRuntime::triangles_cache
mutable

Triangle cache for all the strokes in the drawing.

Examples
/usr/src/RPM/BUILD/blender-4.3.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 61 of file BKE_grease_pencil.hh.

◆ 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/blender-4.3.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 79 of file BKE_grease_pencil.hh.


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