Blender
V3.3
|
Go to the source code of this file.
Functions | |
struct GPUBatch * | GPU_batch_preset_sphere (int lod) ATTR_WARN_UNUSED_RESULT |
struct GPUBatch * | GPU_batch_preset_sphere_wire (int lod) ATTR_WARN_UNUSED_RESULT |
struct GPUBatch * | GPU_batch_preset_panel_drag_widget (float pixelsize, const float col_high[4], const float col_dark[4], float width) ATTR_WARN_UNUSED_RESULT |
struct GPUBatch * | GPU_batch_preset_quad (void) |
void | gpu_batch_presets_init (void) |
void | gpu_batch_presets_register (struct GPUBatch *preset_batch) |
bool | gpu_batch_presets_unregister (struct GPUBatch *preset_batch) |
void | gpu_batch_presets_exit (void) |
Batched geometry rendering is powered by the GPU library. This file contains any additions or modifications specific to Blender.
Definition in file GPU_batch_presets.h.
struct GPUBatch* GPU_batch_preset_panel_drag_widget | ( | float | pixelsize, |
const float | col_high[4], | ||
const float | col_dark[4], | ||
float | width | ||
) |
Definition at line 282 of file gpu_batch_presets.c.
References copy_v4_v4(), equals_v4v4(), g_presets_2d, GPU_batch_discard(), gpu_batch_preset_panel_drag_widget(), gpu_batch_presets_register(), gpu_batch_presets_unregister(), NULL, and width.
Referenced by panel_draw_aligned_widgets().
To be used with procedural placement inside shader.
Definition at line 311 of file gpu_batch_presets.c.
References g_presets_2d, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, gpu_batch_presets_register(), GPU_PRIM_TRI_STRIP, GPU_vertbuf_attr_fill(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), NULL, and preset_2d_format().
Referenced by icon_draw_cache_texture_flush_ex(), icon_draw_texture(), and wm_draw_region_blend().
struct GPUBatch* GPU_batch_preset_sphere | ( | int | lod | ) |
Definition at line 102 of file gpu_batch_presets.c.
References BLI_assert, BLI_thread_is_main(), and g_presets_3d.
Referenced by curve_draw_stroke_3d(), ui_draw_but_UNITVEC(), and wm_xr_controller_model_draw().
struct GPUBatch* GPU_batch_preset_sphere_wire | ( | int | lod | ) |
Definition at line 117 of file gpu_batch_presets.c.
References BLI_assert, BLI_thread_is_main(), and g_presets_3d.
Definition at line 378 of file gpu_batch_presets.c.
References BLI_mutex_end(), BLI_pophead(), LinkData::data, g_presets_3d, GPU_batch_discard(), GPUBatch, MEM_freeN, and presets_list.
Referenced by gpu_batch_exit().
Definition at line 335 of file gpu_batch_presets.c.
References batch_sphere_wire(), BLI_mutex_init(), g_presets_3d, gpu_batch_presets_register(), and gpu_batch_sphere().
Referenced by gpu_batch_init().
Definition at line 356 of file gpu_batch_presets.c.
References BLI_addtail(), BLI_genericNodeN(), BLI_mutex_lock(), BLI_mutex_unlock(), g_presets_3d, and presets_list.
Referenced by batch_screen_edges_get(), GPU_batch_preset_panel_drag_widget(), GPU_batch_preset_quad(), gpu_batch_presets_init(), blender::ed::space_node::nodelink_batch_init(), ui_batch_roundbox_shadow_get(), and ui_batch_roundbox_widget_get().
Definition at line 363 of file gpu_batch_presets.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), BLI_remlink(), g_presets_3d, ListBase::last, MEM_freeN, and presets_list.
Referenced by GPU_batch_preset_panel_drag_widget().