|
Blender
V2.93
|
#include "BLI_math.h"#include "BLI_utildefines.h"#include "DNA_gpencil_types.h"#include "DNA_material_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BKE_context.h"#include "BKE_gpencil.h"#include "BKE_gpencil_geom.h"#include "BKE_main.h"#include "BKE_material.h"#include "DEG_depsgraph.h"#include "ED_gpencil.h"Go to the source code of this file.
Classes | |
| struct | ColorTemplate |
Typedefs | |
| typedef struct ColorTemplate | ColorTemplate |
Functions | |
| static int | gpencil_monkey_color (Main *bmain, Object *ob, const ColorTemplate *pct, bool stroke, bool fill) |
| void | ED_gpencil_create_monkey (bContext *C, Object *ob, float mat[4][4]) |
| typedef struct ColorTemplate ColorTemplate |
Definition at line 820 of file gpencil_add_monkey.c.
References Object::actcol, BKE_gpencil_frame_addnew(), BKE_gpencil_layer_addnew(), BKE_gpencil_stroke_add(), BKE_gpencil_stroke_add_points(), BKE_gpencil_stroke_geometry_update(), C, CFRA, CTX_data_main(), CTX_data_scene(), Object::data, data0, data1, data10, data11, data12, data13, data14, data15, data16, data17, data18, data19, data2, data20, data21, data22, data23, data24, data25, data26, data27, data3, data4, data5, data6, data7, data8, data9, DEG_id_tag_update(), bGPdata::flag, GP_DATA_CACHE_IS_DIRTY, gp_monkey_pct_black, gp_monkey_pct_eyes, gp_monkey_pct_pupils, gp_monkey_pct_skin, gp_monkey_pct_skin_light, gp_monkey_pct_skin_shadow, gpencil_monkey_color(), bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, and scene.
Referenced by object_gpencil_add_exec().
|
static |
Definition at line 50 of file gpencil_add_monkey.c.
References BKE_gpencil_object_material_ensure_by_name(), copy_v4_v4(), ColorTemplate::fill, MaterialGPencilStyle::fill_rgba, MaterialGPencilStyle::flag, GP_MATERIAL_FILL_SHOW, GP_MATERIAL_STROKE_SHOW, Material::gp_style, ColorTemplate::line, ColorTemplate::name, srgb_to_linearrgb_v4(), and MaterialGPencilStyle::stroke_rgba.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 78 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey(), lookup_table_read(), and lookup_table_read_2D().
|
static |
Definition at line 216 of file gpencil_add_monkey.c.
Referenced by blender::compositor::convolve(), CustomData_data_add(), CustomData_data_equals(), ED_gpencil_create_monkey(), layerAdd_mloop_origspace(), layerAdd_mloopcol(), layerAdd_mloopuv(), layerAdd_propcol(), layerAdd_propfloat2(), layerAdd_propfloat3(), layerEqual_mloop_origspace(), layerEqual_mloopcol(), layerEqual_mloopuv(), layerEqual_propcol(), lookup_table_read(), lookup_table_read_2D(), and TEST().
|
static |
Definition at line 418 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 446 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 458 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 470 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 490 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 510 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 546 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 566 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 586 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 606 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 236 of file gpencil_add_monkey.c.
Referenced by blender::compositor::convolve(), CustomData_data_add(), CustomData_data_equals(), ED_gpencil_create_monkey(), layerAdd_mloop_origspace(), layerAdd_mloopcol(), layerAdd_mloopuv(), layerAdd_propcol(), layerAdd_propfloat2(), layerAdd_propfloat3(), layerEqual_mloop_origspace(), layerEqual_mloopcol(), layerEqual_mloopuv(), layerEqual_propcol(), radixsort_pair(), and TEST().
|
static |
Definition at line 626 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 646 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 681 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 697 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 713 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 733 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 745 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 757 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 248 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey(), and TEST().
|
static |
Definition at line 283 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 303 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 338 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 358 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 370 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 398 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 780 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 804 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 810 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 786 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 792 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().
|
static |
Definition at line 798 of file gpencil_add_monkey.c.
Referenced by ED_gpencil_create_monkey().