31 SeqContextDrawData context_;
33 GPUUniformBuf *ubo_context_ =
nullptr;
34 GPUUniformBuf *ubo_strips_ =
nullptr;
36 gpu::Batch *batch_ =
nullptr;
37 int binding_context_ = 0;
38 int binding_strips_ = 0;
39 int strips_count_ = 0;
66 return (view_mask_min_.x + (
x - view_cur_min_.x) * view_cur_inv_size_.x) * view_mask_size_.x;
70 return (view_mask_min_.y + (
y - view_cur_min_.y) * view_cur_inv_size_.y) * view_mask_size_.y;
74 return x * view_cur_inv_size_.x * view_mask_size_.x;
struct GPUShader GPUShader
StripsDrawBatch(const View2D *v2d)
float pos_to_pixel_space_x(float x) const
float pos_to_pixel_space_y(float y) const
GPUUniformBuf * get_ubo_context() const
float size_to_pixel_space_x(float x) const
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)
uint color_pack(const uchar rgba[4])
float calc_strip_round_radius(float pixely)
VecBase< float, 2 > float2