loadOBJasVertexBuffer

fun loadOBJasVertexBuffer(lines: List<String>): VertexBuffer(source)

Loads a Wavefront OBJ file representation provided as a list of strings and parses it into a VertexBuffer.

Return

A VertexBuffer containing the vertex information parsed from the OBJ data.

Parameters

lines

The list of strings representing the content of the Wavefront OBJ file. Each string corresponds to a line in the file.

fun loadOBJasVertexBuffer(fileOrUrl: String): VertexBuffer(source)

Loads an OBJ file as a VertexBuffer. Use this method to render / process the loaded OBJ data using the GPU.


fun loadOBJasVertexBuffer(url: URL): VertexBuffer(source)
fun loadOBJasVertexBuffer(file: File): VertexBuffer(source)