05-06-2005, 03:04 PM
(This post was last modified: 04-26-2008, 06:42 PM by Sisophon2001.)
Hi:
I have uploaded a 3D Chess program, FBChess, using OpenGL and the GFX lib to my web site at http://weekendcode.phatcode.net This is a mixed BASIC program, with the front end in FreeBASIC and the chess engine in BCX BASIC.
It has a model loader for static Milkshape 3d Models and demonstrates one way to manage fonts in OpenGL. It uses the WinAPI for its ini file, for its file open/save dialogs, and for DOEVENTS, but I tried hard to minimize all window specific code so I could think about making a Linux version. I did all the buttons and menuâs using font/graphics, so it would be independent of gui libs/dlls. The chess engine lib is in BCX but uses only generic code, nothing that will give problems porting.
I donât even have a computer with Linux installed yet, but there is a first time for everything <grin>. Can you run an exe on one of those CD bootable versions of Linux?
I may convert the rest of the BCX code to FreeBASIC at some stage, but I was struggling a bit with getting pointers to work in FreeBASIC, and I have enough of it for now. Besides it works fine as is.
Perhaps I might get a few hints on finishing the project by making a Linux version? All window specific code is in one source file for easy review.
Have fun
Garvan
I have uploaded a 3D Chess program, FBChess, using OpenGL and the GFX lib to my web site at http://weekendcode.phatcode.net This is a mixed BASIC program, with the front end in FreeBASIC and the chess engine in BCX BASIC.
It has a model loader for static Milkshape 3d Models and demonstrates one way to manage fonts in OpenGL. It uses the WinAPI for its ini file, for its file open/save dialogs, and for DOEVENTS, but I tried hard to minimize all window specific code so I could think about making a Linux version. I did all the buttons and menuâs using font/graphics, so it would be independent of gui libs/dlls. The chess engine lib is in BCX but uses only generic code, nothing that will give problems porting.
I donât even have a computer with Linux installed yet, but there is a first time for everything <grin>. Can you run an exe on one of those CD bootable versions of Linux?
I may convert the rest of the BCX code to FreeBASIC at some stage, but I was struggling a bit with getting pointers to work in FreeBASIC, and I have enough of it for now. Besides it works fine as is.
Perhaps I might get a few hints on finishing the project by making a Linux version? All window specific code is in one source file for easy review.
Have fun
Garvan