Exemple #1
0
 // Attribute/vertex arrays.
 public void SetVertexAttrib(bool on)
 {
     if (activeProgram != null)
     {
         if (on)
         {
             activeProgram.EnableVertexAttribArrays();
         }
         else
         {
             activeProgram.DisableVertexAttribArrays();
         }
     }
 }
Exemple #2
0
        private void SetVertexAttrib(bool on)
        {
            if (vertexAttribOn == on)
            {
                return;
            }

            if (activeProgram != null)
            {
                if (on)
                {
                    activeProgram.EnableVertexAttribArrays();
                }
                else
                {
                    activeProgram.DisableVertexAttribArrays();
                }
            }

            vertexAttribOn = on;
        }