示例#1
0
        public void dibujar()
        {
            shader.Use();
            //setUniforms();
            GL.BindVertexArray(VertexArrayObject);
            //dibuja

            GL.DrawElements(PrimitiveType.Triangles, indices.Length, DrawElementsType.UnsignedInt, 0);
        }
示例#2
0
 public void setterShader(string vert, string frag)
 {
     shader = new shader(vert, frag);//instancio shader
     shader.Use();
 }
示例#3
0
 public void setShader()
 {
     shader = new shader("recursos/shaders/shader.vert", "recursos/shaders/shader.frag");
     shader.Use();
 }