All projects below are built using GLUT library, and should compile without any problems on Linux and Mac.
The project ZIP files contain the source code and a Windows exe file.
GL Tic Tac Toe(X's and O's)game
I had a user on the openGL forum ask about how to do a TicTacToe
I ended up writing the complete program, very simple graphics and text.
Simple game logic, maybe could improve the Computer AI.
Use mouse to select X or O and locations.
The 'L' key turns lighting on/off and 'V' changes from ortho to perspective view.
[ESC] to exit
Windows Version:
Tic-Tac-Toe.zip
Linux version source:
glut_ttt-0.1.tar.gz
Screen shot
GL BLackJack (21)
Here is a simple BlackJack program, needs some cleaning up on the layout.
Key's function(CAPS):
[ESC] = quit
'N' = new game
'B' = Bet's in dollar increases, also press to start game
'D' = Deal cards, start new game.
'H' = add card(s)
'S' = stay with current cards
'L' = Lighting on/off
Blackjack.zip
Screen shot
GL clock
Simple clock program, shows current time.
Keys:
[ESC] exit
'V' change from ortho to prespective view
'L' turn lighting on/off
Windows code with exe
GLClock.zip
Linux source only
glclock-0.1.tar.gz
Screen shots
GLball
Simple textured sphere, with a texture cylinder.
The cylinder is maped with a TGA with an alpha channel used as a transparentcy mask.
glball.zip
Screen shot