Skip to content

cdgramos/OpenGL-Object-Importer-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL Object Importer Library

This library is designed to import .obj files into OpenGL scenes.

Features

  • Support the drawing of the .obj vertices
  • Support the drawing of the .obj simple faces

Usage

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.

Object declaration

// This will load the supported data from the obj file.
Model humanModel;

Object loading

// This will load the supported data from the obj file.
humanModel = loadModel("human.obj");

Drawing functions

// 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);

Sample picture of an imported object

Sample model

Change Log

  • 08-12-2015 - First version

Acknowledgments

  • human.obj model from opengameart.com

About

C / OpenGL Library to Import 3D models in OBJ file format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages