Author Topic: any one here have any experience with the clio lib  (Read 3820 times)

0 Members and 1 Guest are viewing this topic.

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
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
Code: [Select]
#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:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: any one here have any experience with the clio lib
« Reply #1 on: November 27, 2009 »
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:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: any one here have any experience with the clio lib
« Reply #2 on: November 27, 2009 »
ahh thanks jim ill give it a bash and see how far it goes.
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: any one here have any experience with the clio lib
« Reply #3 on: December 01, 2009 »
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: