修改了LayerStyle
parent
e03afb85ce
commit
05fa4194b8
|
@ -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" />
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#include "LayerStyle.h"
|
||||
|
||||
std::vector<Renderer::BaseStyle> StrokeElementStyle::toBaseStyles() const
|
||||
{
|
||||
return std::vector<Renderer::BaseStyle>();
|
||||
}
|
|
@ -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;
|
||||
};
|
Loading…
Reference in New Issue