]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programbuilder.h
Support custom functions in ProgramBuilder
[libs/gl.git] / source / programbuilder.h
index 43d43fcca8f74d6823812809d88cec0fde6b65a0..e61e9942c0a343083f5d876baaa819befac61b44 100644 (file)
@@ -82,6 +82,8 @@ public:
                /** Use a skylight component for ambient lighting. */
                bool skylight;
 
+               bool fog;
+
                /** Use a specular lighting component. */
                bool specular;
 
@@ -96,6 +98,12 @@ public:
                equivalend in the pipeline. */
                bool reflection;
 
+               /** Clip primitives against user defined clip planes. */
+               bool clipping;
+
+               /** Number of clipping planes to process. */
+               unsigned max_clip_planes;
+
                /** Force the use of legacy shaders conforming to GLSL 1.10.   Defaults
                to true if the version of GLSL is less than 1.30, false otherwise. */
                bool legacy;
@@ -113,6 +121,7 @@ private:
        {
                NO_SCOPE,
                TYPE,
+               FUNCTION,
                UNIFORM,
                ATTRIBUTE,
                VERTEX,
@@ -124,7 +133,6 @@ private:
                NO_INTERFACE = 0,
                INPUT = 1,
                OUTPUT = 2,
-               PASSTHROUGH = INPUT|OUTPUT,
                GOAL = 4
        };