Ejemplo n.º 1
0
        public void depthMask(GLboolean flag)
        {
            string script = ScriptBuilder.Build(
                ScriptBuilder.Script(
                    "{0}.depthMask({1});"
                    ),
                Script.GetObject(API.id),
                flag.Escape()
                );

            API.ExecuteJavaScript(script);
        }
Ejemplo n.º 2
0
        public void sampleCoverage(GLclampf value, GLboolean invert)
        {
            string script = ScriptBuilder.Build(
                ScriptBuilder.Script(
                    "{0}.sampleCoverage({1},{2});"
                    ),
                Script.GetObject(API.id),
                value, invert.Escape()
                );

            API.ExecuteJavaScript(script);
        }
Ejemplo n.º 3
0
        public void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
        {
            string script = ScriptBuilder.Build(
                ScriptBuilder.Script(
                    "{0}.colorMask({1},{2},{3},{4});"
                    ),
                Script.GetObject(API.id),
                red.Escape(), green.Escape(), blue.Escape(), alpha.Escape()
                );

            API.ExecuteJavaScript(script);
        }