ArgonarioD 2023-03-10 16:07:54 +08:00
commit 293c1f3096
2 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,12 @@ Renderer::MaterialStyleStroke::MaterialStyleStroke(float width, StrokeType strok
{
}
Renderer::MaterialStyleStroke::MaterialStyleStroke(const MaterialStyleStroke& s)
:halfWidth(s.halfWidth), strokeType(s.strokeType), endType(s.endType), materialStroke(std::make_shared<MaterialStroke>(*s.materialStroke))
{
}
MaterialStyleType Renderer::MaterialStyleStroke::type() const
{
return MaterialStyleType::kStroke;

View File

@ -45,6 +45,7 @@ namespace Renderer
{
public:
MaterialStyleStroke(float width, StrokeType strokeType, StrokeEndType endType, std::shared_ptr<MaterialStroke> materialStroke);
MaterialStyleStroke(const MaterialStyleStroke&);
virtual MaterialStyleType type() const override;
virtual std::vector<GLfloat> encoded() const override;
virtual bool operator==(const MaterialStyle&) const override;