Blender V5.0
gpencil_draw_data.cc File Reference
#include "DRW_render.hh"
#include "DNA_light_types.h"
#include "DNA_material_types.h"
#include "BKE_image.hh"
#include "BKE_material.hh"
#include "BLI_math_matrix.h"
#include "BLI_math_vector.h"
#include "BLI_memblock.h"
#include "GPU_uniform_buffer.hh"
#include "IMB_imbuf_types.hh"
#include "gpencil_engine_private.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::draw
namespace  blender::draw::gpencil

Functions

Material
static MaterialPoolblender::draw::gpencil::gpencil_material_pool_add (Instance *inst)
static gpu::Textureblender::draw::gpencil::gpencil_image_texture_get (::Image *image, bool *r_alpha_premult)
static void blender::draw::gpencil::gpencil_uv_transform_get (const float ofs[2], const float scale[2], const float rotation, float r_rot_scale[2][2], float r_offset[2])
static void blender::draw::gpencil::gpencil_shade_color (float color[3])
static MaterialGPencilStyleblender::draw::gpencil::gpencil_viewport_material_overrides (Instance *inst, Object *ob, int color_type, MaterialGPencilStyle *gp_style, const eV3DShadingLightingMode lighting_mode)
MaterialPoolblender::draw::gpencil::gpencil_material_pool_create (Instance *inst, Object *ob, int *ofs, const bool is_vertex_mode)
void blender::draw::gpencil::gpencil_material_resources_get (MaterialPool *first_pool, int mat_id, gpu::Texture **r_tex_stroke, gpu::Texture **r_tex_fill, gpu::UniformBuf **r_ubo_mat)
Lights
LightPoolblender::draw::gpencil::gpencil_light_pool_add (Instance *inst)
void blender::draw::gpencil::gpencil_light_ambient_add (LightPool *lightpool, const float color[3])
static float blender::draw::gpencil::light_power_get (const Light *la)
void blender::draw::gpencil::gpencil_light_pool_populate (LightPool *lightpool, Object *ob)
LightPoolblender::draw::gpencil::gpencil_light_pool_create (Instance *inst, Object *)