修改了LayerStyle

dev-VirtualTexture
wuyize 2023-02-11 12:43:52 +08:00
parent e03afb85ce
commit 05fa4194b8
4 changed files with 28 additions and 0 deletions

View File

@ -107,6 +107,7 @@
<ClCompile Include="src\Editor\ElementManager.cpp" />
<ClCompile Include="src\Editor\GraphicElement.cpp" />
<ClCompile Include="src\Editor\LayerManager.cpp" />
<ClCompile Include="src\Editor\LayerStyle.cpp" />
<ClCompile Include="src\Editor\LayerWrapper.cpp" />
<ClCompile Include="src\Editor\PixelPath.cpp" />
<ClCompile Include="src\Editor\PreviewWindow.cpp" />

View File

@ -207,6 +207,9 @@
<ClCompile Include="src\Editor\PixelPath.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\Editor\LayerStyle.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<QtMoc Include="src\Renderer\RendererGLWidget.h">

View File

@ -0,0 +1,6 @@
#include "LayerStyle.h"
std::vector<Renderer::BaseStyle> StrokeElementStyle::toBaseStyles() const
{
return std::vector<Renderer::BaseStyle>();
}

View File

@ -1,6 +1,24 @@
#pragma once
#include "../Renderer/Painting/ElementStyle.h"
#include "../Renderer/Painting/MaterialStyleStroke.h"
class LayerStyle
{
public:
virtual void apply() = 0;
};
struct EditorStrokeMaterialStyle
{
float applyWidth;
Renderer::StrokeType strokeType;
Renderer::StrokeEndType endType;
std::shared_ptr<Renderer::MaterialStroke> materialStroke;
};
class StrokeElementStyle : Renderer::ElementStyle
{
public:
virtual std::vector<Renderer::BaseStyle> toBaseStyles() const override;
std::vector<EditorStrokeMaterialStyle> materialStyles;
};