|
Blender V4.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 |
| GPUUniformBuf * | get_ubo_context () const |
Definition at line 30 of file sequencer_strips_batch.hh.
| blender::ed::seq::StripsDrawBatch::StripsDrawBatch | ( | const View2D * | v2d | ) |
Definition at line 45 of file sequencer_strips_batch.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), blender::ed::seq::calc_strip_round_radius(), col, blender::ed::seq::color_pack(), View2D::cur, GPU_batch_preset_quad(), GPU_SEQ_STRIP_DRAW_DATA_LEN, GPU_shader_get_builtin_shader(), GPU_shader_get_ubo_binding(), GPU_SHADER_SEQUENCER_STRIPS, GPU_uniformbuf_create, GPU_uniformbuf_create_ex(), View2D::mask, TH_BACK, UI_GetThemeColorShade3ubv(), rctf::xmin, rcti::xmin, rctf::ymin, and rcti::ymin.
| blender::ed::seq::StripsDrawBatch::~StripsDrawBatch | ( | ) |
Definition at line 72 of file sequencer_strips_batch.cc.
References flush_batch(), GPU_uniformbuf_free(), and GPU_uniformbuf_unbind().
| SeqStripDrawData & blender::ed::seq::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 82 of file sequencer_strips_batch.cc.
References SeqStripDrawData::bottom, SeqStripDrawData::content_end, SeqStripDrawData::content_start, SeqStripDrawData::flags, flush_batch(), GPU_SEQ_FLAG_SINGLE_IMAGE, GPU_SEQ_STRIP_DRAW_DATA_LEN, 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 draw_strips_background(), and draw_strips_foreground().
| void blender::ed::seq::StripsDrawBatch::flush_batch | ( | ) |
Definition at line 114 of file sequencer_strips_batch.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::data(), GPU_batch_draw_instance_range(), GPU_batch_set_shader(), GPU_shader_bind(), GPU_uniformbuf_bind(), and GPU_uniformbuf_update().
Referenced by add_strip(), draw_strips_background(), draw_strips_foreground(), and ~StripsDrawBatch().
|
inline |
Definition at line 77 of file sequencer_strips_batch.hh.
Referenced by ThumbsDrawBatch::flush_batch().
Definition at line 64 of file sequencer_strips_batch.hh.
Referenced by add_strip(), and ThumbsDrawBatch::add_thumb().
Definition at line 68 of file sequencer_strips_batch.hh.
Referenced by add_strip(), and ThumbsDrawBatch::add_thumb().
Definition at line 72 of file sequencer_strips_batch.hh.
Referenced by add_strip().