From: H. H. <hen...@gm...> - 2008-08-24 16:09:20
|
Here are some general ideas for GLSDK utility libraries. What libraries do we need? - OpenGL Math Library (GLM, nicknamed 'mathlib') for 3d math, under development by me... - OpenGL Shape Library (GLS, nicknamed 'shapelib') for basic 3d geometry drawing and perhaps model loading, under development by branan... - OpenGL Extension Library (GLE, nicknamed 'extlib') for GL3 context creation and API loading, under development by korval... - texture loading? I know two libraries for this; developer's image library (devil) and freeimage. FreeImage is a C library, but does not have OpenGL look & feel DevIL is a C library too and has somewhat OpenGL look & feel I am thinking that we might also want to develop imagelib of our own, which would just contain entry points that just simple load an image from a file and return it as GL texture: // load image and return it as texture GLuint gltLoadTexture (const char *filename); // load image, convert it to the given format and return as texture GLuint gltLoadTexture2 (const char *filename, GLenum format); // load from a buffer GLuint gltLoadBuf (const GLvoid *buf, GLsizei size); (the entry point names are debatable) DevIL has some nasties; it does not return textures directly etc. - windowing system abstraction? Candidates; GLUT and GLFW. we could also choose to implement our own windowlib that woudl integrate into our GLE. This library would have features for opening windows, creating simple menu bars, input processing etc. - anything else? -- Henri 'henux' Häkkinen |