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

#include <BKE_grease_pencil.hh>

Public Attributes

SharedCache< Vector< int > > triangle_offsets_cache
SharedCache< Vector< int3 > > triangles_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 51 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/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 65 of file BKE_grease_pencil.hh.

◆ curve_texture_matrices

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

◆ fake_user

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

Ensures that the drawing is not deleted and can be used temporarily (e.g. by the transform code).

Examples
/usr/src/RPM/BUILD/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 84 of file BKE_grease_pencil.hh.

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

Definition at line 56 of file BKE_grease_pencil.hh.

◆ triangles_cache

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

Triangle cache for all the strokes in the drawing.

Examples
/usr/src/RPM/BUILD/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 60 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/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 78 of file BKE_grease_pencil.hh.


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