ObjLoader /

#includecinder/ObjLoader.h

Loads Alias|Wavefront .OBJ file format.

Example usage:

cinder::gl::BatchRef myCubeRef;
ObjLoader loader( loadFile( "myPath/cube.obj" ) );
myCubeRef = gl::Batch::create( loader, gl::getStockShader( gl::ShaderDef().color() ) );
myCubeRef->draw();


Public Member Functions

  • size_t
    getNumVertices () const override
  • size_t
    getNumIndices () const override
  • getPrimitive () const override
  • uint8_t
    getAttribDims (geom::Attrib attr) const override
  • getAvailableAttribs () const override
  • void
    loadInto (geom::Target *target, const geom::AttribSet &requestedAttribs) const override
  • Source *
    clone () const override

Protected Member Functions

  • void
    forceCopyIndicesTrianglesImpl (T *dest) const