This library is designed to import .obj files into OpenGL scenes.
- Support the drawing of the .obj vertices
- Support the drawing of the .obj simple faces
To use this library, it is only needed to import the objImporter.h
header file.
The functions are explained below, and there is also a sample program in example.c
.
// This will load the supported data from the obj file.
Model humanModel;
// This will load the supported data from the obj file.
humanModel = loadModel("human.obj");
// This function will draw the vertices of a loaded object. The first parameter is the vertice point size and the second is the object.
drawModelVertex(int , Model);
// This function only supports simple faces. It accepts as the parameter an object and draws its faces.
drawModelFaces(humanModel);
- 08-12-2015 - First version
human.obj
model from opengameart.com