Now we will see how to load a 3D Model file with the GLC_Factory and display it by GLC_World class. In this example an OBJ file format is loaded.
Other supported format can be loaded in the same way. (The file extension is used by GLC_Lib to determine the file format.)
Only the code related to load and display the 3D model is developed.
1. GLWidget class
// Create GLC_Object to display
// Load mesh from a file
see GLC_Factory class, and GLC_World class. Note that the copy of a GLC_World is a shallow copy.