From f848f3ecc8dc36b6992448a36a6b79d550c6d1e7 Mon Sep 17 00:00:00 2001 From: f1fth_freed0m Date: Thu, 6 Mar 2008 04:22:00 +0000 Subject: Translated German comments to English git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@918 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UGraphic.pas | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'Game/Code/Classes/UGraphic.pas') 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 ); -- cgit v1.2.3