Skip to content

Commit

Permalink
Update colorwidgetshaders.h
Browse files Browse the repository at this point in the history
Fix Windows build.
  • Loading branch information
rodlie committed Apr 9, 2024
1 parent 3b47c2b commit e8bcec9
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions src/ui/widgets/colorwidgetshaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@

#ifndef COLORWIDGETSHADERS_H
#define COLORWIDGETSHADERS_H

#include "ui_global.h"

#include "glhelpers.h"

struct ColorProgram {
struct UI_EXPORT ColorProgram {
GLuint fID;
GLint fHSVColorLoc;
GLint fRGBColorLoc;
Expand All @@ -39,52 +42,52 @@ struct ColorProgram {
GLint fMeshSizeLoc;
};

struct PlainColorProgram {
struct UI_EXPORT PlainColorProgram {
GLuint fID;
GLint fRGBAColorLoc;
GLint fMeshSizeLoc;
};

struct GradientProgram {
struct UI_EXPORT GradientProgram {
GLuint fID;
GLint fRGBAColor1Loc;
GLint fRGBAColor2Loc;
GLint fMeshSizeLoc;
};

struct BorderProgram {
struct UI_EXPORT BorderProgram {
GLuint fID;
GLint fBorderSizeLoc;
GLint fBorderColorLoc;
};

struct DoubleBorderProgram {
struct UI_EXPORT DoubleBorderProgram {
GLuint fID;
GLint fInnerBorderSizeLoc;
GLint fInnerBorderColorLoc;
GLint fOuterBorderSizeLoc;
GLint fOuterBorderColorLoc;
};

extern ColorProgram HUE_PROGRAM;
extern ColorProgram HSV_SATURATION_PROGRAM;
extern ColorProgram VALUE_PROGRAM;
extern UI_EXPORT ColorProgram HUE_PROGRAM;
extern UI_EXPORT ColorProgram HSV_SATURATION_PROGRAM;
extern UI_EXPORT ColorProgram VALUE_PROGRAM;

extern ColorProgram HSL_SATURATION_PROGRAM;
extern ColorProgram LIGHTNESS_PROGRAM;
extern UI_EXPORT ColorProgram HSL_SATURATION_PROGRAM;
extern UI_EXPORT ColorProgram LIGHTNESS_PROGRAM;

extern ColorProgram RED_PROGRAM;
extern ColorProgram GREEN_PROGRAM;
extern ColorProgram BLUE_PROGRAM;
extern UI_EXPORT ColorProgram RED_PROGRAM;
extern UI_EXPORT ColorProgram GREEN_PROGRAM;
extern UI_EXPORT ColorProgram BLUE_PROGRAM;

extern ColorProgram ALPHA_PROGRAM;
extern UI_EXPORT ColorProgram ALPHA_PROGRAM;

extern PlainColorProgram PLAIN_PROGRAM;
extern GradientProgram GRADIENT_PROGRAM;
extern UI_EXPORT PlainColorProgram PLAIN_PROGRAM;
extern UI_EXPORT GradientProgram GRADIENT_PROGRAM;

extern BorderProgram BORDER_PROGRAM;
extern DoubleBorderProgram DOUBLE_BORDER_PROGRAM;
extern UI_EXPORT BorderProgram BORDER_PROGRAM;
extern UI_EXPORT DoubleBorderProgram DOUBLE_BORDER_PROGRAM;

extern void iniColorPrograms(QGL33 * const gl);
extern UI_EXPORT void iniColorPrograms(QGL33 * const gl);

#endif // COLORWIDGETSHADERS_H

0 comments on commit e8bcec9

Please sign in to comment.