Extract final canvas wrappers and preview mix pass
This commit is contained in:
@@ -334,3 +334,36 @@ void legacy_canvas_stroke_start(Canvas& canvas, glm::vec3 point, float pressure)
|
||||
}
|
||||
|
||||
} // namespace pp::panopainter
|
||||
|
||||
void Canvas::stroke_end()
|
||||
{
|
||||
pp::panopainter::legacy_canvas_stroke_end(*this);
|
||||
}
|
||||
|
||||
void Canvas::stroke_cancel()
|
||||
{
|
||||
pp::panopainter::legacy_canvas_stroke_cancel(*this);
|
||||
}
|
||||
|
||||
void Canvas::stroke_draw_mix(const glm::vec2& bb_min, const glm::vec2& bb_sz)
|
||||
{
|
||||
pp::panopainter::legacy_canvas_stroke_draw_mix(*this, bb_min, bb_sz);
|
||||
}
|
||||
|
||||
std::array<std::vector<vertex_t>, 6> Canvas::stroke_draw_project(
|
||||
std::array<vertex_t, 4>& B,
|
||||
bool project_3d /*= false*/,
|
||||
glm::mat4 mv /*= glm::mat4(1)*/) const
|
||||
{
|
||||
return pp::panopainter::legacy_canvas_stroke_draw_project(*this, B, project_3d, mv);
|
||||
}
|
||||
|
||||
void Canvas::stroke_update(glm::vec3 point, float pressure)
|
||||
{
|
||||
pp::panopainter::legacy_canvas_stroke_update(*this, point, pressure);
|
||||
}
|
||||
|
||||
void Canvas::stroke_start(glm::vec3 point, float pressure)
|
||||
{
|
||||
pp::panopainter::legacy_canvas_stroke_start(*this, point, pressure);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user