-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add scale-in option for vector layer polygons #585
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ class PolygonPatternGroup2dShaderOpenGl : public BaseShaderProgramOpenGl, | |
public std::enable_shared_from_this<ShaderProgramInterface> { | ||
|
||
public: | ||
PolygonPatternGroup2dShaderOpenGl(bool fadeInPattern); | ||
|
||
virtual std::string getProgramName() override; | ||
|
||
virtual void setupProgram(const std::shared_ptr<::RenderingContextInterface> &context) override; | ||
|
@@ -30,7 +32,8 @@ class PolygonPatternGroup2dShaderOpenGl : public BaseShaderProgramOpenGl, | |
virtual std::shared_ptr<ShaderProgramInterface> asShaderProgramInterface() override; | ||
|
||
protected: | ||
const static std::string programName; | ||
const bool fadeInPattern; | ||
const std::string programName; | ||
Comment on lines
+35
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Member variable |
||
|
||
virtual std::string getFragmentShader() override; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ class ShaderFactoryOpenGl : public ShaderFactoryInterface { | |
|
||
std::shared_ptr<PolygonGroupShaderInterface> createPolygonGroupShader() override; | ||
|
||
std::shared_ptr<PolygonPatternGroupShaderInterface> createPolygonPatternGroupShader() override; | ||
std::shared_ptr<PolygonPatternGroupShaderInterface> createPolygonPatternGroupShader(bool fadeInPattern) override; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method signature update to include |
||
|
||
std::shared_ptr<TextShaderInterface> createTextShader() override; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -390,6 +390,7 @@ class GLThread constructor( | |
width = w | ||
height = h | ||
sizeChanged = true | ||
requestRender() | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constructor
PolygonPatternGroup2dShaderOpenGl(bool fadeInPattern)
introduces a boolean parameter to control fading in patterns. Ensure all shader instances are correctly initialized with this new parameter.