Extract stroke draw pad face callback body
This commit is contained in:
@@ -882,6 +882,21 @@ void Canvas::stroke_draw_pad_face_orchestration(
|
|||||||
bool copy_stroke_destination,
|
bool copy_stroke_destination,
|
||||||
const pp::renderer::Extent2D& stroke_extent,
|
const pp::renderer::Extent2D& stroke_extent,
|
||||||
const glm::vec4& pad_color)
|
const glm::vec4& pad_color)
|
||||||
|
{
|
||||||
|
stroke_draw_pad_face_callback_body(
|
||||||
|
box_dirty,
|
||||||
|
box_face,
|
||||||
|
copy_stroke_destination,
|
||||||
|
stroke_extent,
|
||||||
|
pad_color);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Canvas::stroke_draw_pad_face_callback_body(
|
||||||
|
const std::array<bool, 6>& box_dirty,
|
||||||
|
const std::array<glm::vec4, 6>& box_face,
|
||||||
|
bool copy_stroke_destination,
|
||||||
|
const pp::renderer::Extent2D& stroke_extent,
|
||||||
|
const glm::vec4& pad_color)
|
||||||
{
|
{
|
||||||
pp::panopainter::setup_legacy_stroke_pad_shader(
|
pp::panopainter::setup_legacy_stroke_pad_shader(
|
||||||
pp::panopainter::LegacyStrokePadUniforms {
|
pp::panopainter::LegacyStrokePadUniforms {
|
||||||
|
|||||||
@@ -253,6 +253,12 @@ private:
|
|||||||
bool copy_stroke_destination,
|
bool copy_stroke_destination,
|
||||||
const pp::renderer::Extent2D& stroke_extent,
|
const pp::renderer::Extent2D& stroke_extent,
|
||||||
const glm::vec4& pad_color);
|
const glm::vec4& pad_color);
|
||||||
|
void stroke_draw_pad_face_callback_body(
|
||||||
|
const std::array<bool, 6>& box_dirty,
|
||||||
|
const std::array<glm::vec4, 6>& box_face,
|
||||||
|
bool copy_stroke_destination,
|
||||||
|
const pp::renderer::Extent2D& stroke_extent,
|
||||||
|
const glm::vec4& pad_color);
|
||||||
void stroke_draw_dual_pass(
|
void stroke_draw_dual_pass(
|
||||||
const std::vector<StrokeFrame>& frames_dual,
|
const std::vector<StrokeFrame>& frames_dual,
|
||||||
const std::array<pp::panopainter::LegacyCanvasStrokeTextureBinding, 1>& dual_pass_texture_bindings,
|
const std::array<pp::panopainter::LegacyCanvasStrokeTextureBinding, 1>& dual_pass_texture_bindings,
|
||||||
|
|||||||
Reference in New Issue
Block a user