• Welcome to Dark Bit Factory & Gravity.
 

any one here have any experience with the clio lib

Started by ninogenio, November 26, 2009

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

ninogenio

i downloaded the clio (clean input and output ) lib for use with opengl it includes some cool stuff like 3ds model loading rendering and texture stuff all built in. the problem is that the library was built for linux and apple and only has them defined in the sources.

i.e

#ifdef __linux__
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <values.h>
#include <limits.h>
#include <string.h>
#include <GL/gl.h>
#include <GL/glu.h>
#endif

#ifdef __APPLE__
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <limits.h>
#include <string.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#endif


i was wondering if adding a win32 define to all the source files would allow me to build this into a static lib ok under visual studio. i would have tried before asking but there is quite a bit of work as there is lots of source files.
Challenge Trophies Won:

Jim

You might get 90% of the way there by defining either __linux__ or __APPLE__ in the Project->Properties->Configuration Properties->C++->Preprocessor->Preprocessor Definitions.

But there will also very likely be some real system dependencies you will need to replace with Windows specific code.

Jim


Challenge Trophies Won:

ninogenio

ahh thanks jim ill give it a bash and see how far it goes.
Challenge Trophies Won:

ninogenio

well thanks jim,

there was indeed quite a bit of work to do to get it to build now i havent tested this out to far but i think it should work just fine.
i have attached the 3 built libs for any one wanting a go these are fully comprehensive libs for opengl they do every thing from matrix calcs to image and model loading as well as rendering and model opperations centering resizing and all sorts of lighting.

you can use just cl if you wish which is just the basics the clio and clu are extensions for model and image loading.

note for anyone wanting to use the clio lib you have to also use devilil.

i am now going to start messing around so i will post examples in the next few days.if any ones finds any problems please let me know. as i can addjust/change some things.

here is the offical documentation if any one wants to use the lib.

http://60hz.csse.uwa.edu.au/libraries.html
Challenge Trophies Won: