|
Blender V4.5
|
Grease Pencil API for render engines. More...
#include "BKE_attribute.hh"#include "BKE_curves.hh"#include "BKE_grease_pencil.h"#include "BKE_grease_pencil.hh"#include "BLI_array_utils.hh"#include "BLI_listbase.h"#include "BLI_offset_indices.hh"#include "BLI_task.hh"#include "DNA_grease_pencil_types.h"#include "DRW_engine.hh"#include "DRW_render.hh"#include "ED_curves.hh"#include "ED_grease_pencil.hh"#include "GPU_batch.hh"#include "draw_cache.hh"#include "draw_cache_impl.hh"#include "../engines/gpencil/gpencil_defines.hh"#include "../engines/gpencil/gpencil_shader_shared.hh"Go to the source code of this file.
Classes | |
| struct | blender::draw::GreasePencilBatchCache |
| struct | blender::draw::GreasePencilStrokeVert |
| struct | blender::draw::GreasePencilColorVert |
Namespaces | |
| namespace | blender |
| namespace | blender::draw |
Vertex Buffers | |
| #define | GREASE_PENCIL_EDIT_POINT_SELECTED (1 << 0) |
| #define | GREASE_PENCIL_EDIT_STROKE_SELECTED (1 << 1) |
| #define | GREASE_PENCIL_EDIT_MULTIFRAME (1 << 2) |
| #define | GREASE_PENCIL_EDIT_STROKE_START (1 << 3) |
| #define | GREASE_PENCIL_EDIT_STROKE_END (1 << 4) |
| #define | GREASE_PENCIL_EDIT_POINT_DIMMED (1 << 5) |
| BLI_INLINE int32_t | blender::draw::pack_rotation_aspect_hardness (float rot, float asp, float softness) |
| static void | blender::draw::copy_transformed_positions (const Span< float3 > src_positions, const IndexRange range, const float4x4 &transform, MutableSpan< float3 > dst_positions) |
| static bool | blender::draw::grease_pencil_batch_cache_is_edit_discarded (GreasePencilBatchCache *cache) |
| static void | blender::draw::grease_pencil_weight_batch_ensure (Object &object, const GreasePencil &grease_pencil, const Scene &scene) |
| static IndexMask | blender::draw::grease_pencil_get_visible_nurbs_points (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory) |
| static IndexMask | blender::draw::grease_pencil_get_visible_nurbs_curves (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory) |
| static IndexMask | blender::draw::grease_pencil_get_visible_non_nurbs_curves (Object &object, const bke::greasepencil::Drawing &drawing, const int layer_index, IndexMaskMemory &memory) |
| static void | blender::draw::grease_pencil_cache_add_nurbs (Object &object, const bke::greasepencil::Drawing &drawing, const int layer_index, IndexMaskMemory &memory, const VArray< float > &selected_point, const float4x4 &layer_space_to_object_space, MutableSpan< float3 > edit_line_points, MutableSpan< float > edit_line_selection, int *r_drawing_line_start_offset, int *r_total_line_ids_num) |
| static void | blender::draw::index_buf_add_line_points (Object &object, const bke::greasepencil::Drawing &drawing, const int layer_index, IndexMaskMemory &memory, MutableSpan< uint > lines_data, int *r_drawing_line_index, int *r_drawing_line_start_offset) |
| static void | blender::draw::index_buf_add_nurbs_lines (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory, MutableSpan< uint > lines_data, int *r_drawing_line_index, int *r_drawing_line_start_offset) |
| static void | blender::draw::index_buf_add_bezier_lines (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory, MutableSpan< uint > lines_data, int *r_drawing_line_index, int *r_drawing_line_start_offset) |
| static void | blender::draw::index_buf_add_points (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory, MutableSpan< uint > points_data, int *r_drawing_point_index, int *r_drawing_start_offset) |
| static void | blender::draw::index_buf_add_bezier_line_points (Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory, MutableSpan< uint > points_data, int *r_drawing_point_index, int *r_drawing_start_offset) |
| static void | blender::draw::grease_pencil_edit_batch_ensure (Object &object, const GreasePencil &grease_pencil, const Scene &scene) |
| template<typename T> | |
| static VArray< T > | blender::draw::attribute_interpolate (const VArray< T > &input, const bke::CurvesGeometry &curves) |
| static void | blender::draw::grease_pencil_geom_batch_ensure (Object &object, const GreasePencil &grease_pencil, const Scene &scene) |
| static void | blender::draw::grease_pencil_wire_batch_ensure (Object &object, const GreasePencil &grease_pencil, const Scene &scene) |
Grease Pencil API for render engines.
Definition in file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_MULTIFRAME (1 << 2) |
Definition at line 690 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_POINT_DIMMED (1 << 5) |
Definition at line 693 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_POINT_SELECTED (1 << 0) |
Definition at line 688 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_STROKE_END (1 << 4) |
Definition at line 692 of file draw_cache_impl_grease_pencil.cc.
Referenced by blender::draw::grease_pencil_edit_batch_ensure().
| #define GREASE_PENCIL_EDIT_STROKE_SELECTED (1 << 1) |
Definition at line 689 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_STROKE_START (1 << 3) |
Definition at line 691 of file draw_cache_impl_grease_pencil.cc.
Referenced by blender::draw::grease_pencil_edit_batch_ensure().