i dont think you can combine the glut commands you use from within a form. Maybe you can take a look a the courses available on http://nehe.gamedev.net. They are also available for delphi. Or take a look at http://www.sulaco.co.za.