Blender V4.3
blender::bke::GreasePencilRuntime Class Reference

#include <BKE_grease_pencil.hh>

Public Member Functions

 GreasePencilRuntime ()
 
 ~GreasePencilRuntime ()
 

Public Attributes

void * batch_cache = nullptr
 
int eval_frame = 0
 
bool is_drawing_stroke = false
 
bool temp_use_eraser = false
 
float temp_eraser_size = 0.0f
 
std::unique_ptr< bake::BakeMaterialsListbake_materials
 

Detailed Description

Definition at line 887 of file BKE_grease_pencil.hh.

Constructor & Destructor Documentation

◆ GreasePencilRuntime()

blender::bke::GreasePencilRuntime::GreasePencilRuntime ( )
default

◆ ~GreasePencilRuntime()

blender::bke::GreasePencilRuntime::~GreasePencilRuntime ( )
default

Member Data Documentation

◆ bake_materials

std::unique_ptr<bake::BakeMaterialsList> blender::bke::GreasePencilRuntime::bake_materials

◆ batch_cache

void* blender::bke::GreasePencilRuntime::batch_cache = nullptr

Allocated and freed by the drawing code. See DRW_grease_pencil_batch_cache_* functions.

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

Definition at line 892 of file BKE_grease_pencil.hh.

◆ eval_frame

int blender::bke::GreasePencilRuntime::eval_frame = 0

The frame on which the object was evaluated (only valid for evaluated object).

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

Definition at line 896 of file BKE_grease_pencil.hh.

◆ is_drawing_stroke

bool blender::bke::GreasePencilRuntime::is_drawing_stroke = false

Set to true while drawing a stroke (e.g. with the draw tool). Used for example to temporarily hide the paint cursor in the viewport.

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

Definition at line 901 of file BKE_grease_pencil.hh.

◆ temp_eraser_size

float blender::bke::GreasePencilRuntime::temp_eraser_size = 0.0f

◆ temp_use_eraser

bool blender::bke::GreasePencilRuntime::temp_use_eraser = false

Temporarily enable the eraser. Used by the draw tool.

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

Definition at line 905 of file BKE_grease_pencil.hh.


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