hello folks, glut is a really great, really simple to use CROSS platform lib. and that cross platform aspect is what i use to implement a port of gaffers tinyptc (www.gaffer.org - a cross platform "low level graphics library for software rendering in 32 bit color") to opengl (using ortho mode and texture blitting) for even more platforms available to tinyptc. but the interface of tinyptc allows the user to write his own "message loop"
a prog looks like this:
thats all one needs to do all the nice demo's or such and one is not bothered with event handling, callbacks and window-os-specific stuff. but - sadly glut needs to use callbacks and its mainloop.
but - WHY ?!?!?! - glut does not allow to set up a user mainloop - somehow like this:
// my code
so glut still could process all events and so on.
you may watch the current implementation using glut and another implementation using windows api at
(look at gl_glut.c and gl_test.c and maybe at gl.c - the win32 implementation)
i really would like to use glut instead of os dependent windows stuff. so please someone help or can convince the author of glut ??
and besides fltk.org - a cross platform gui toolkit ALLOWS a user defined mainloop!!
so why not glut ?
[This message has been edited by herc (edited 05-12-2002).]