public Cubo() { cantidadDeVertices = GetVertices().Length / 5; cantidadDeIndices = GetIndices().Length; bufferDeVertices = new VerticesBuffer(GetVertices(), GetVertices().Length *sizeof(float)); bufferDeIndices = new IndicesBuffer(GetIndices(), GetIndices().Length); SetShader(); textura = new Textura("d:/ginno/Documents/Visual Studio 2017/Projects/Tarea1Grafica/Tarea1Grafica/Recursos/wall.png"); textura.Use(); arregloDeVertices = new VerticesArreglo(); arregloDeVertices.enlazar(); bufferDeVertices.enlazar(); bufferDeIndices.enlazar(); arregloDeVertices.añadirBuffer(bufferDeVertices, shader); CalcularMatrizModelo(); }