示例#1
0
文件: Marbles.cs 项目: maoap1/grcis-1
 // Attribute/vertex arrays.
 public void SetVertexAttrib(bool on)
 {
     if (activeProgram != null)
     {
         if (on)
         {
             activeProgram.EnableVertexAttribArrays();
         }
         else
         {
             activeProgram.DisableVertexAttribArrays();
         }
     }
 }
示例#2
0
        private void SetVertexAttrib(bool on)
        {
            if (vertexAttribOn == on)
            {
                return;
            }

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

            vertexAttribOn = on;
        }