From 650f532335bcea2bb480fda604815c8d57e60ffa Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Wed, 25 Jan 2006 02:55:37 +0000 Subject: [PATCH] structs used into meshrender plugins --- src/meshlabplugins/meshrender/shaderStructs.h | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/meshlabplugins/meshrender/shaderStructs.h diff --git a/src/meshlabplugins/meshrender/shaderStructs.h b/src/meshlabplugins/meshrender/shaderStructs.h new file mode 100644 index 000000000..5a90b1874 --- /dev/null +++ b/src/meshlabplugins/meshrender/shaderStructs.h @@ -0,0 +1,44 @@ +#ifndef SHDRSTRUCTS +#define SHDRSTRUCTS + +#include +#include + +struct UniformVariable { + short type; + short widget; + float min; + float max; + float step; + int location; + union { + int ival; + float fval; + float val2[2]; + float val3[3]; + float val4[4]; + }; +}; + +struct ShaderInfo { + QString vpFile; + QString fpFile; + std::map uniformVars; + int shaderProg; +}; + +enum { + SINGLE_INT = 1, + SINGLE_FLOAT = 5, + ARRAY_2_FLOAT = 6, + ARRAY_3_FLOAT = 7, + ARRAY_4_FLOAT = 8 +}; + +enum { + WIDGET_NONE = 0, + WIDGET_COLOR = 1, + WIDGET_SLIDER = 2 +}; + +#endif \ No newline at end of file