private VertexData makeVertexBuffer (boolean isStatic, int maxVertices, VertexAttributes vertexAttributes) { if (Gdx.gl30 != null) { return new VertexBufferObjectWithVAO(isStatic, maxVertices, vertexAttributes); } else { return new VertexBufferObject(isStatic, maxVertices, vertexAttributes); } }
private VertexData makeVertexBuffer (boolean isStatic, int maxVertices, VertexAttributes vertexAttributes) { if (Gdx.gl30 != null) { return new VertexBufferObjectWithVAO(isStatic, maxVertices, vertexAttributes); } else { return new VertexBufferObject(isStatic, maxVertices, vertexAttributes); } }
break; case VertexBufferObjectWithVAO: vertices = new VertexBufferObjectWithVAO(isStatic, maxVertices, attributes); indices = new IndexBufferObjectSubData(isStatic, maxIndices); isVertexArray = false;
break; case VertexBufferObjectWithVAO: vertices = new VertexBufferObjectWithVAO(isStatic, maxVertices, attributes); indices = new IndexBufferObjectSubData(isStatic, maxIndices); isVertexArray = false;
VertexBufferObjectWithVAO newVBOWithVAO = new VertexBufferObjectWithVAO(false, maxVertices, vertexAttributes); OldVertexBufferObjectWithVAO oldVBOWithVAO = new OldVertexBufferObjectWithVAO(false, maxVertices, vertexAttributes);
private VertexData makeVertexBuffer (boolean isStatic, int maxVertices, VertexAttributes vertexAttributes) { if (Gdx.gl30 != null) { return new VertexBufferObjectWithVAO(isStatic, maxVertices, vertexAttributes); } else { return new VertexBufferObject(isStatic, maxVertices, vertexAttributes); } }
break; case VertexBufferObjectWithVAO: vertices = new VertexBufferObjectWithVAO(isStatic, maxVertices, attributes); indices = new IndexBufferObjectSubData(isStatic, maxIndices); isVertexArray = false;