|
Blender V5.0
|
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 |
Macros | |
| #define | EDIT_CURVES_NURBS_CONTROL_POINT (1u) |
| #define | EDIT_CURVES_BEZIER_HANDLE (1u << 1) |
| #define | EDIT_CURVES_ACTIVE_HANDLE (1u << 2) |
| #define | EDIT_CURVES_BEZIER_KNOT (1u << 3) |
| #define | EDIT_CURVES_HANDLE_TYPES_SHIFT (4u) |
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_miter (const float rot, const float asp, const float softness, const float miter_angle) |
| 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_handle_lines (const IndexMask bezier_points, const int all_points, MutableSpan< uint2 > handle_lines, 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 uint32_t | blender::draw::bezier_data_value (int8_t handle_type, bool is_active) |
| static void | blender::draw::index_buf_add_bezier_line_points (const IndexMask bezier_points, 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 VArray< float > | blender::draw::interpolate_corners (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 EDIT_CURVES_ACTIVE_HANDLE (1u << 2) |
Definition at line 41 of file draw_cache_impl_grease_pencil.cc.
| #define EDIT_CURVES_BEZIER_HANDLE (1u << 1) |
Definition at line 40 of file draw_cache_impl_grease_pencil.cc.
| #define EDIT_CURVES_BEZIER_KNOT (1u << 3) |
Definition at line 44 of file draw_cache_impl_grease_pencil.cc.
| #define EDIT_CURVES_HANDLE_TYPES_SHIFT (4u) |
Definition at line 45 of file draw_cache_impl_grease_pencil.cc.
| #define EDIT_CURVES_NURBS_CONTROL_POINT (1u) |
Definition at line 39 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_MULTIFRAME (1 << 2) |
Definition at line 715 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_POINT_DIMMED (1 << 5) |
Definition at line 718 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_POINT_SELECTED (1 << 0) |
Definition at line 713 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_STROKE_END (1 << 4) |
Definition at line 717 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 714 of file draw_cache_impl_grease_pencil.cc.
| #define GREASE_PENCIL_EDIT_STROKE_START (1 << 3) |
Definition at line 716 of file draw_cache_impl_grease_pencil.cc.
Referenced by blender::draw::grease_pencil_edit_batch_ensure().