public void SetIndexBuffer(IndexBuffer indexBuffer) { this.Bind(); indexBuffer.Bind(); this.indexBuffer = indexBuffer; }