|
Blender V4.3
|
Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
Functions | |
| blender::gpu::Batch * | GPU_batch_preset_sphere (int lod) ATTR_WARN_UNUSED_RESULT |
| blender::gpu::Batch * | GPU_batch_preset_sphere_wire (int lod) ATTR_WARN_UNUSED_RESULT |
| blender::gpu::Batch * | GPU_batch_preset_panel_drag_widget (float pixelsize, const float col_high[4], const float col_dark[4], float width) ATTR_WARN_UNUSED_RESULT |
| blender::gpu::Batch * | GPU_batch_preset_quad () |
| void | gpu_batch_presets_init () |
| void | gpu_batch_presets_register (blender::gpu::Batch *preset_batch) |
| bool | gpu_batch_presets_unregister (blender::gpu::Batch *preset_batch) |
| void | gpu_batch_presets_exit () |
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.hh.
| blender::gpu::Batch * GPU_batch_preset_panel_drag_widget | ( | float | pixelsize, |
| const float | col_high[4], | ||
| const float | col_dark[4], | ||
| float | width ) |
Definition at line 284 of file gpu_batch_presets.cc.
References copy_v4_v4(), equals_v4v4(), g_presets_2d, GPU_batch_discard(), gpu_batch_preset_panel_drag_widget(), gpu_batch_presets_register(), and gpu_batch_presets_unregister().
Referenced by panel_draw_aligned_widgets().
| blender::gpu::Batch * GPU_batch_preset_quad | ( | ) |
To be used with procedural placement inside shader.
Definition at line 313 of file gpu_batch_presets.cc.
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(), and preset_2d_format().
Referenced by blender::ed::seq::StripsDrawBatch::StripsDrawBatch(), ThumbsDrawBatch::ThumbsDrawBatch(), and wm_draw_region_blend().
| blender::gpu::Batch * GPU_batch_preset_sphere | ( | int | lod | ) |
Definition at line 104 of file gpu_batch_presets.cc.
References BLI_assert, BLI_thread_is_main(), and g_presets_3d.
Referenced by blender::ed::curves::curve_draw_stroke_3d(), curve_draw_stroke_3d(), ui_draw_but_UNITVEC(), and wm_xr_controller_model_draw().
| blender::gpu::Batch * GPU_batch_preset_sphere_wire | ( | int | lod | ) |
Definition at line 119 of file gpu_batch_presets.cc.
References BLI_assert, BLI_thread_is_main(), and g_presets_3d.
| void gpu_batch_presets_exit | ( | ) |
Definition at line 380 of file gpu_batch_presets.cc.
References BLI_mutex_end(), BLI_pophead(), g_presets_2d, g_presets_3d, GPU_batch_discard(), MEM_freeN(), and presets_list.
Referenced by gpu_batch_exit().
| void gpu_batch_presets_init | ( | ) |
Definition at line 337 of file gpu_batch_presets.cc.
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 | ( | blender::gpu::Batch * | preset_batch | ) |
Definition at line 358 of file gpu_batch_presets.cc.
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().
| bool gpu_batch_presets_unregister | ( | blender::gpu::Batch * | preset_batch | ) |
Definition at line 365 of file gpu_batch_presets.cc.
References BLI_mutex_lock(), BLI_mutex_unlock(), BLI_remlink(), g_presets_3d, LISTBASE_FOREACH_BACKWARD, MEM_freeN(), and presets_list.
Referenced by GPU_batch_preset_panel_drag_widget().