- cinder::geom::Source
- cinder::ObjLoader
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();
Show All |
Public Member Functions
-
size_tgetNumVertices () const override
-
size_tgetNumIndices () const override
-
getPrimitive () const override
-
uint8_tgetAttribDims (geom::Attrib attr) const override
-
getAvailableAttribs () const override
-
voidloadInto (geom::Target *target, const geom::AttribSet &requestedAttribs) const override
-
Source *clone () const override