Use FindFreeGLUT from https://code.google.com/p/jag-3d/
Basic creature builder
Basic creature sensor