|
Blender
V2.93
|
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 (const float pixelsize, const float col_high[4], const float col_dark[4], const 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 | ( | const float | pixelsize, |
| const float | col_high[4], | ||
| const float | col_dark[4], | ||
| const float | width | ||
| ) |
Definition at line 305 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().
| struct GPUBatch* GPU_batch_preset_quad | ( | void | ) |
Definition at line 335 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_FAN, 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 124 of file gpu_batch_presets.c.
References BLI_assert, BLI_thread_is_main(), and g_presets_3d.
Referenced by curve_draw_stroke_3d(), and ui_draw_but_UNITVEC().
| struct GPUBatch* GPU_batch_preset_sphere_wire | ( | int | lod | ) |
Definition at line 139 of file gpu_batch_presets.c.
References BLI_assert, BLI_thread_is_main(), and g_presets_3d.
| void gpu_batch_presets_exit | ( | void | ) |
Definition at line 401 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().
| void gpu_batch_presets_init | ( | void | ) |
Definition at line 358 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().
| void gpu_batch_presets_register | ( | struct GPUBatch * | preset_batch | ) |
Definition at line 379 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(), nodelink_batch_init(), ui_batch_roundbox_shadow_get(), and ui_batch_roundbox_widget_get().
| bool gpu_batch_presets_unregister | ( | struct GPUBatch * | preset_batch | ) |
Definition at line 386 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().