Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 360 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 360 Bytes

orx-obj-loader

A simple loader for Wavefront .obj files

Usage

Loading directly into a vertex buffer can be done through loadOBJasVertexBuffer.

val vertexBuffer = loadOBJasVertexBuffer("data/someObject.obj")

The loaded vertex buffer can be drawn like this:

drawer.vertexBuffer(vertexBuffer, DrawPrimitive.TRIANGLES)