|
Blender V5.3
|
#include <sequencer_strips_batch.hh>
Public Member Functions | |
| StripsDrawBatch (const View2D *v2d) | |
| ~StripsDrawBatch () | |
| SeqStripDrawData & | add_strip (float content_start, float content_end, float top, float bottom, float content_top, float left_handle, float right_handle, float handle_width, bool single_image) |
| void | flush_batch () |
| float | pos_to_pixel_space_x (float x) const |
| float | pos_to_pixel_space_y (float y) const |
| float | size_to_pixel_space_x (float x) const |
| gpu::UniformBuf * | get_ubo_context () const |
Definition at line 34 of file sequencer_strips_batch.hh.
| blender::ed::vse::StripsDrawBatch::StripsDrawBatch | ( | const View2D * | v2d | ) |
Definition at line 45 of file sequencer_strips_batch.cc.
References blender::BLI_rctf_size_x(), blender::BLI_rctf_size_y(), blender::BLI_rcti_size_x(), blender::BLI_rcti_size_y(), blender::ed::vse::calc_strip_round_radius(), blender::ed::vse::color_pack(), blender::View2D::cur, blender::ui::theme::get_color_shade_3ubv(), blender::GPU_batch_preset_quad(), blender::GPU_shader_get_builtin_shader(), blender::GPU_shader_get_ubo_binding(), blender::GPU_SHADER_SEQUENCER_STRIPS, GPU_uniformbuf_create, blender::GPU_uniformbuf_create_ex(), blender::View2D::mask, blender::TH_BACK, blender::U, blender::rctf::xmin, blender::rcti::xmin, blender::rctf::ymin, and blender::rcti::ymin.
| blender::ed::vse::StripsDrawBatch::~StripsDrawBatch | ( | ) |
Definition at line 72 of file sequencer_strips_batch.cc.
References flush_batch(), and blender::GPU_uniformbuf_free().
| SeqStripDrawData & blender::ed::vse::StripsDrawBatch::add_strip | ( | float | content_start, |
| float | content_end, | ||
| float | top, | ||
| float | bottom, | ||
| float | content_top, | ||
| float | left_handle, | ||
| float | right_handle, | ||
| float | handle_width, | ||
| bool | single_image ) |
Definition at line 80 of file sequencer_strips_batch.cc.
References SeqStripDrawData::bottom, SeqStripDrawData::content_end, SeqStripDrawData::content_start, SeqStripDrawData::flags, flush_batch(), GPU_SEQ_FLAG_SINGLE_IMAGE, SeqStripDrawData::handle_width, SeqStripDrawData::left_handle, pos_to_pixel_space_x(), pos_to_pixel_space_y(), SeqStripDrawData::right_handle, size_to_pixel_space_x(), SeqStripDrawData::strip_content_top, and SeqStripDrawData::top.
Referenced by blender::ed::vse::draw_strip_in_view(), blender::ed::vse::draw_strips_background(), and blender::ed::vse::draw_strips_foreground().
| void blender::ed::vse::StripsDrawBatch::flush_batch | ( | ) |
Definition at line 112 of file sequencer_strips_batch.cc.
References blender::GPU_batch_draw_instance_range(), blender::GPU_batch_set_shader(), blender::GPU_shader_bind(), blender::GPU_uniformbuf_bind(), and blender::GPU_uniformbuf_update().
Referenced by add_strip(), blender::ed::vse::draw_strip_in_view(), blender::ed::vse::draw_strips_background(), blender::ed::vse::draw_strips_foreground(), and ~StripsDrawBatch().
|
inline |
Definition at line 81 of file sequencer_strips_batch.hh.
Referenced by blender::ed::vse::ThumbsDrawBatch::flush_batch().
Definition at line 68 of file sequencer_strips_batch.hh.
References blender::x.
Referenced by add_strip(), blender::ed::vse::ThumbsDrawBatch::add_thumb(), and blender::ed::vse::draw_strip_texts().
Definition at line 72 of file sequencer_strips_batch.hh.
References y.
Referenced by add_strip(), blender::ed::vse::ThumbsDrawBatch::add_thumb(), and blender::ed::vse::draw_strip_texts().
Definition at line 76 of file sequencer_strips_batch.hh.
References blender::x.
Referenced by add_strip().