![]() ![]() ![]() The upper slider controls the speed, the other the turning. Under a recent (or older, probably) cygwin: gcc -O -DWIN32 -D_WIN32_ -D_WINDOW -o maze.exe serv2.c maze.c -lglut32 -lglaux -lglu32 -luser32 -lgdi32 -lopengl32 -lm -lwinmmīutton. The program is made by compiling these two source files: maze.c I applied similar principles in the past to another application, a sound generator based on string simulation, about which I'll also add the Tk control part here. I just finished it, and the principle works, which is fun and interesting. The Tcl script is very simple, but it works, though it needs adapting parameter ranges, and is just basic. Maybe I'll make another glut based or so program later, which compiles on linux and others, too. ![]() It's an older example I picked up on the web somewhere long ago, and it compiled fine under cygwin years ago. I picked a maze application this time, and found out as I started that it is programmed with typical windows stuff (messages, window handling) in it. Also, the interactive nature of tcl lets you play along or experiment with the graphics and the pieces of program controlling them. More than a few years ago, I did a robot arm () which was also an openGL window, as separate program, controlled over a socket connection by a tcl program, which evidently has the major advantage of building scripts (.) to control the graphical scene. After a long break, I got a maze application, sort of game, out of the dust. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |