aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UGraphic.pas
diff options
context:
space:
mode:
authorf1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-06 04:22:00 +0000
committerf1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-06 04:22:00 +0000
commitf848f3ecc8dc36b6992448a36a6b79d550c6d1e7 (patch)
treedbe47ef337748eab6d7d2f79d7a78ac3b97b13f3 /Game/Code/Classes/UGraphic.pas
parent09e53466cd18092dd30944c18cc89c3c567e7b7c (diff)
downloadusdx-f848f3ecc8dc36b6992448a36a6b79d550c6d1e7.tar.gz
usdx-f848f3ecc8dc36b6992448a36a6b79d550c6d1e7.tar.xz
usdx-f848f3ecc8dc36b6992448a36a6b79d550c6d1e7.zip
Translated German comments to English
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@918 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/UGraphic.pas')
-rw-r--r--Game/Code/Classes/UGraphic.pas30
1 files changed, 25 insertions, 5 deletions
diff --git a/Game/Code/Classes/UGraphic.pas b/Game/Code/Classes/UGraphic.pas
index fecdb10f..90f8b34a 100644
--- a/Game/Code/Classes/UGraphic.pas
+++ b/Game/Code/Classes/UGraphic.pas
@@ -496,9 +496,13 @@ begin
// funktioniert so noch nicht, da der ladethread unverändert auf opengl zugreifen will
// siehe dazu kommentar unten
+ // Englisch Translation:
+ // is currently not working because the loading thread trys to accses opengl unchanged
+ // look comment below
+
//LoadingThread := SDL_CreateThread(@LoadingThread, nil);
- // das hier würde dann im ladethread ausgeführt
+ // this would be run in the loadingthread
Log.LogStatus(' Loading Screens', 'UGraphic.Initialize3D');
LoadScreens;
@@ -518,12 +522,28 @@ begin
// opengl funktionen aufzurufen, entsprechend mutexe verändert
// der hauptthread muss auch irgendwoher erfahren, was an opengl funktionen auszuführen ist,
// mit welchen parametern (texturtyp, entspr. texturobjekt, textur-zwischenspeicher-adresse, ...
+ //
+ // English Translation:
+ // here should be a loop witch
+ // * draws the loading screen (form time to time)
+ // * controlls the "process of the loading screen
+ // * checks if the loadingthread has loaded textures (check mutex) and
+ // * load the textures into opengl
+ // * tells the loadingthread, that the memory for the texture can be reused
+ // to load the netx texture (over another mutex)
+ // * runs as long as the loadingthread tells, that everything is loaded and ready (using a third mutex)
+ //
+ // therefor loadtexture have to be changed, that it, instat of caling some opengl functions
+ // for itself, it should change mutex
+ // the mainthread have to know somehow what opengl function have to be called with which parameters like
+ // texturetype, textureobjekt, textur-buffer-adress, ...
+
- //wait for loading thread to finish
- // funktioniert so auch noch nicht
- //SDL_WaitThread(LoadingThread, I);
-// SDL_DestroyMutex(Mutex);
+ // wait for loading thread to finish
+ // funktioniert so auch noch nicht - currently dos not work this way
+ // SDL_WaitThread(LoadingThread, I);
+ // SDL_DestroyMutex(Mutex);
Display.CurrentScreen^.FadeTo( @ScreenMain );