Skip to content

Commit

Permalink
Move color shaders to core
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Apr 8, 2024
1 parent 18dd3d6 commit bf70d0e
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 16 deletions.
15 changes: 0 additions & 15 deletions src/app/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,6 @@
<file alias="cursor-pen.xpm">pixmaps/cursor-pen.xpm</file>
<file alias="cursor-pencil.xpm">pixmaps/cursor-pencil.xpm</file>
</qresource>
<qresource prefix="/colorwidgetshaders">
<file alias="alpha.frag">GUI/ColorWidgets/colorwidgetshaders/alpha.frag</file>
<file alias="blue.frag">GUI/ColorWidgets/colorwidgetshaders/blue.frag</file>
<file alias="border.frag">GUI/ColorWidgets/colorwidgetshaders/border.frag</file>
<file alias="doubleborder.frag">GUI/ColorWidgets/colorwidgetshaders/doubleborder.frag</file>
<file alias="gradient.frag">GUI/ColorWidgets/colorwidgetshaders/gradient.frag</file>
<file alias="green.frag">GUI/ColorWidgets/colorwidgetshaders/green.frag</file>
<file alias="hsl_saturation.frag">GUI/ColorWidgets/colorwidgetshaders/hsl_saturation.frag</file>
<file alias="hsv_saturation.frag">GUI/ColorWidgets/colorwidgetshaders/hsv_saturation.frag</file>
<file alias="hue.frag">GUI/ColorWidgets/colorwidgetshaders/hue.frag</file>
<file alias="lightness.frag">GUI/ColorWidgets/colorwidgetshaders/lightness.frag</file>
<file alias="plain.frag">GUI/ColorWidgets/colorwidgetshaders/plain.frag</file>
<file alias="red.frag">GUI/ColorWidgets/colorwidgetshaders/red.frag</file>
<file alias="value.frag">GUI/ColorWidgets/colorwidgetshaders/value.frag</file>
</qresource>
<qresource prefix="/other"/>
<qresource prefix="/checkbox">
<file alias="Checkbox_checked_normal.png">pixmaps/Checkbox_checked_normal.png</file>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions src/core/coreresources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,18 @@
<file alias="noisefadeeffect.frag">RasterEffects/noisefadeeffect.frag</file>
<file alias="colorizeeffect.frag">RasterEffects/colorizeeffect.frag</file>
<file alias="brightnesscontrasteffect.frag">RasterEffects/brightnesscontrasteffect.frag</file>
<file alias="alpha.frag">colorshaders/alpha.frag</file>
<file alias="blue.frag">colorshaders/blue.frag</file>
<file alias="border.frag">colorshaders/border.frag</file>
<file alias="doubleborder.frag">colorshaders/doubleborder.frag</file>
<file alias="gradient.frag">colorshaders/gradient.frag</file>
<file alias="green.frag">colorshaders/green.frag</file>
<file alias="hsl_saturation.frag">colorshaders/hsl_saturation.frag</file>
<file alias="hsv_saturation.frag">colorshaders/hsv_saturation.frag</file>
<file alias="hue.frag">colorshaders/hue.frag</file>
<file alias="lightness.frag">colorshaders/lightness.frag</file>
<file alias="plain.frag">colorshaders/plain.frag</file>
<file alias="red.frag">colorshaders/red.frag</file>
<file alias="value.frag">colorshaders/value.frag</file>
</qresource>
</RCC>
2 changes: 1 addition & 1 deletion src/ui/widgets/colorwidgetshaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void iniGradientProgram(QGL33 * const gl, const QString& colorShadersPath) {
}

void iniColorPrograms(QGL33 * const gl) {
const QString colorShadersPath = ":/colorwidgetshaders/";
const QString colorShadersPath = ":/shaders/";

try {
iniColorProgram(gl, HUE_PROGRAM, GL_PLAIN_VERT,
Expand Down

0 comments on commit bf70d0e

Please sign in to comment.