Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Fr Apr 19, 2024 01:59

Foren-Übersicht » English » English Programming Forum
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Autor Nachricht
BeitragVerfasst: Sa Mär 26, 2005 02:48 
Offline
DGL Member

Registriert: Di Mär 01, 2005 23:21
Beiträge: 7
This is somewhat off-topic, but seeing as though many of us learn OpenGL to fulfill our desire to program 3D games, I hope no one will mind.

I have ported to object pascal the source code accompanying this article:

"Managing Game States in C++" by Tony Lewis
http://tonyandpaige.com/tutorials/game1.html

You can download my port from here:

http://www.urbanaustralia.org/cragwolf/ ... pas.tar.gz

(23 KB)

I have only tested it with FPC v1.9.8 and JEDI_SDL v1.0 (Beta 1) on Linux. But I see no reason why it shouldn't work on Windows with FPC or Delphi (perhaps with a few small changes). I compile it with: fpc -Sd -ostateman main.dpr

If you have any questions about it, just email me.


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Sa Mär 26, 2005 09:12 
Offline
DGL Member

Registriert: Mo Jan 20, 2003 20:10
Beiträge: 424
Wohnort: nähe Starnberg
To work with Delphi, you have to change two small things.

First, add {APPTYPE CONSOLE} to main.dpr, or you get an in/out error, cause WriteLn without file parameter is only allowed in console applications.

Second, in file gameengine.pas, line 230:
Code:
  1.  
  2. Flags : Cardinal = 0;
  3.  
to
Code:
  1.  
  2. var
  3.   flags: Cardinal;
  4. begin
  5.   flags:= 0;
  6.  


Grettings
KidPaddle

_________________
http://www.seban.de


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Mär 27, 2005 11:35 
Offline
DGL Member

Registriert: Di Mär 01, 2005 23:21
Beiträge: 7
Thanks.


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Foren-Übersicht » English » English Programming Forum


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 18 Gäste


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.555s | 19 Queries | GZIP : On ]