Show differencesHistory of post edits
#Actualhaegarr
Posted 18 June 2012 - 11:32 PM
The project "obj-mesh-libs" is not only a loader but comes with an example of use. Usually one integrates a loader into the own project, using the loader functionality and perhaps a wrapper to adapt the internal structure to the own needs. However, the example of use shows one way of ow to do so. Look into the lib's "Code" directory and there into the files Program.hpp and especially Program.cpp. The method "Program::LoadObject" does the actual loading. In the sample it is called from "Program::MenuCallback" where a file dialog is run to get the name and path of the OBJ to load.
#1haegarr
Posted 18 June 2012 - 11:30 PM
The project "obj-mesh-libs" is not only a loader but comes with an example of use. Usually one integrates a loader into the own project, using the loader functionality and perhaps a wrapper to adapt the internal structure to the own needs. However, the example of use shows one way of ow to do so. Look into the lib's "Code" directory and there into the files "Program.hpp" and especially "Program.cpp". The method "Program::LoadObject" does the actual loading. In the sample it is called from "Program::MenuCallback" where a file dialog is run to get the name and path of the OBJ to load.