DEADSOFTWARE

render: e_graphics -> r_graphics
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Tue, 8 Jun 2021 10:14:19 +0000 (13:14 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 9 Jun 2023 07:44:21 +0000 (10:44 +0300)
30 files changed:
src/game/Doom2DF.lpr
src/game/g_game.pas
src/game/g_gui.pas
src/game/g_holmes.pas
src/game/g_main.pas
src/game/g_map.pas
src/game/g_menu.pas
src/game/g_monsters.pas
src/game/g_netmsg.pas
src/game/g_options.pas
src/game/g_phys.pas
src/game/g_player.pas
src/game/g_playermodel.pas
src/game/g_textures.pas
src/game/g_window.pas
src/game/opengl/r_console.pas
src/game/opengl/r_game.pas
src/game/opengl/r_gfx.pas
src/game/opengl/r_graphics.pas [moved from src/engine/e_graphics.pas with 99% similarity]
src/game/opengl/r_items.pas
src/game/opengl/r_map.pas
src/game/opengl/r_monsters.pas
src/game/opengl/r_netmaster.pas
src/game/opengl/r_panel.pas
src/game/opengl/r_player.pas
src/game/opengl/r_playermodel.pas
src/game/opengl/r_weapons.pas
src/game/sdl/g_system.pas
src/game/sdl2/g_system.pas
src/game/sdl2/g_touch.pas

index b02f8f96e0173079b99bca9cb14ca3085a2ff5e3..3c9358437420da1083560e34d4f695c684402c36 100644 (file)
@@ -99,7 +99,6 @@ uses
 {$ENDIF}
 
   ENet in '../lib/enet/enet.pp',
-  e_graphics in '../engine/e_graphics.pas',
   e_input in '../engine/e_input.pas',
   e_log in '../engine/e_log.pas',
   e_sound in '../engine/e_sound.pas',
@@ -156,6 +155,7 @@ uses
   r_console in 'opengl/r_console.pas',
   r_game in 'opengl/r_game.pas',
   r_gfx in 'opengl/r_gfx.pas',
+  r_graphics in 'opengl/r_graphics.pas',
   r_items in 'opengl/r_items.pas',
   r_map in 'opengl/r_map.pas',
   r_monsters in 'opengl/r_monsters.pas',
index 62628e7ce7b34a010a3c60fc5ff4020bfd3d0fc1..4ef072c7d07df7b3e04b7b2332d223134eaf0e15 100644 (file)
@@ -20,7 +20,7 @@ interface
 uses
   SysUtils, Classes,
   MAPDEF,
-  g_basic, g_player, e_graphics, g_res_downloader,
+  g_basic, g_player, r_graphics, g_res_downloader,
   g_sound, g_gui, utils, md5, mempool, xprofiler,
   g_touch, g_weapons;
 
index 5ed507de39ac83be5367d977ce7bb4a5a46bf92e..3ec8c0d720ea4e847b957b6ccff292e22b601b28 100644 (file)
@@ -19,7 +19,7 @@ interface
 
 uses
   {$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
-  e_graphics, e_input, e_log, g_playermodel, g_basic, g_touch, MAPDEF, utils;
+  r_graphics, e_input, e_log, g_playermodel, g_basic, g_touch, MAPDEF, utils;
 
 const
   MAINMENU_HEADER_COLOR: TRGB = (R:255; G:255; B:255);
index c173bd00312e9686a7e4cb9df0165251e0de4ce4..7b1463be9619c519e59d1dbb4c93e4ecec6cac65 100644 (file)
@@ -20,7 +20,7 @@ interface
 uses
   mempool, geom,
   e_log, e_input,
-  g_textures, g_basic, e_graphics, g_phys, g_grid, g_player, g_monsters,
+  g_textures, g_basic, r_graphics, g_phys, g_grid, g_player, g_monsters,
   g_window, g_map, g_triggers, g_items, g_game, g_panel, g_console, g_gfx,
   xprofiler,
   sdlcarcass,
index 4b227e0f020962f3385f21e2a281d57cd04dc534..fe0a24dba87389a7aa20947970c32cc3fff3427a 100644 (file)
@@ -67,7 +67,7 @@ uses
   SDL2,
 {$ENDIF}
   wadreader, e_log, g_window,
-  e_graphics, e_input, g_game, g_console, g_gui,
+  r_graphics, e_input, g_game, g_console, g_gui,
   e_sound, g_options, g_sound, g_player, g_basic,
   g_weapons, SysUtils, g_triggers, MAPDEF, g_map, e_res,
   g_menu, g_language, g_net, g_touch, g_system, g_res_downloader,
index d9c7711cc440c1c894417a287a99ed365a6337f5..ca7a64a395d3140d7f6427ef1b39a67967e7129f 100644 (file)
@@ -20,7 +20,7 @@ interface
 
 uses
   SysUtils, Classes, mempool,
-  e_graphics, g_basic, MAPDEF, g_textures,
+  r_graphics, g_basic, MAPDEF, g_textures,
   g_phys, utils, g_panel, g_grid, md5, binheap, xprofiler, xparser, xdynrec;
 
 type
index 1af2cbd7d8b9eb8fea12007e3ed8c2960269d4ad..7491b72848e5d6527391bfe7ee0c527ccaa4c935 100644 (file)
@@ -43,7 +43,7 @@ var
 implementation
 
 uses
-  g_gui, g_textures, e_graphics, g_main, g_window, g_game, g_map,
+  g_gui, g_textures, r_graphics, g_main, g_window, g_game, g_map,
   g_basic, g_console, g_sound, g_gfx, g_player, g_options, g_weapons,
   e_log, SysUtils, CONFIG, g_playermodel, DateUtils,
   MAPDEF, Math, g_saveload,
index 5aa8bdc3d6f16eed16dcaadc53ae6e369f2e39c3..711ecc0ab42e4f9121cb304d9950360f94179729 100644 (file)
@@ -23,7 +23,7 @@ uses
   SysUtils, Classes,
   mempool,
   MAPDEF,
-  g_basic, e_graphics, g_phys, g_textures, g_grid,
+  g_basic, r_graphics, g_phys, g_textures, g_grid,
   g_saveload, g_panel, xprofiler;
 
 const
index 73c65e358b9427b7486f9425cb1c0569d39f67c3..3a0d9d906604bdece89f9ad072aec37ec173490e 100644 (file)
@@ -284,7 +284,7 @@ function IsValidFilePath(const S: String): Boolean;
 implementation
 
 uses
-  Math, ENet, e_input, e_graphics, e_log,
+  Math, ENet, e_input, r_graphics, e_log,
   g_textures, g_gfx, g_sound, g_console, g_basic, g_options, g_main,
   g_game, g_player, g_map, g_panel, g_items, g_weapons, g_phys, g_gui,
   g_language, g_monsters, g_netmaster, utils, wadreader, MAPDEF;
index 6fb6434d399b85f71e8daeeae50a2dc368c95514..420ef52ecedd2e51f9e8d0d5ec33bd1d07053f0e 100644 (file)
@@ -84,7 +84,7 @@ uses
   {$ENDIF}
   e_log, e_input, g_console, g_window, g_sound, g_gfx, g_player, Math,
   g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game, g_main, e_texture,
-  g_items, wadreader, e_graphics, g_touch, envvars, g_system;
+  g_items, wadreader, r_graphics, g_touch, envvars, g_system;
 
   var
     machine: Integer;
index af569ea1e1784185f70f13aa5ae47f0ef955fa1d..81bdb78d6b095492405bb06c4afaf4d9601749d4 100644 (file)
@@ -18,7 +18,7 @@ unit g_phys;
 interface
 
 uses
-  e_graphics;
+  r_graphics;
 
 type
   PObj = ^TObj;
index c082c00a0e0adf18ae28137c580db6bc60d8273a..0370927c4524a59a2af59295e97d330535a79b9a 100644 (file)
@@ -21,7 +21,7 @@ interface
 uses
   SysUtils, Classes,
   {$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
-  e_graphics, g_playermodel, g_basic, g_textures,
+  r_graphics, g_playermodel, g_basic, g_textures,
   g_weapons, g_phys, g_sound, g_saveload, MAPDEF,
   g_panel;
 
index 40a3489a1fd7781ae530c2c5d39546a8fa5e0037..a436aa180900c31cc07081c75fd3dd775a08670f 100644 (file)
@@ -19,7 +19,7 @@ unit g_playermodel;
 interface
 
 uses
-  MAPDEF, g_textures, g_basic, g_weapons, e_graphics, utils, g_gfx,
+  MAPDEF, g_textures, g_basic, g_weapons, r_graphics, utils, g_gfx,
   ImagingTypes, Imaging, ImagingUtility;
 
 const
index 7d8ad75283212881d9f40d4963ab75de5ef27b1c..b8ebfa0f563d55374148ba1d46bf9da1b866b17c 100644 (file)
@@ -20,7 +20,7 @@ interface
 uses
   SysUtils, Classes,
   {$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
-  e_graphics, MAPDEF, ImagingTypes, Imaging, ImagingUtility;
+  r_graphics, MAPDEF, ImagingTypes, Imaging, ImagingUtility;
 
 type
   TLevelTexture = record
index b5e36742efa150bbe34286c823a6bb47624d071e..7a719b606d8b8446ef07f255519aa292bf126f67 100644 (file)
@@ -39,7 +39,7 @@ uses
 {$ENDIF}
 {$INCLUDE ../nogl/noGLuses.inc}
   SysUtils, Classes, MAPDEF, Math,
-  e_graphics, e_log, e_texture, g_main,
+  r_graphics, e_log, e_texture, g_main,
   g_console, r_console, e_input, g_options, g_game, r_game,
   g_basic, g_textures, e_sound, g_sound, g_menu, ENet, g_net,
   g_map, g_gfx, g_monsters, xprofiler,
index 78eccc9c6eb6c55dc75d69719e33df4d5b3ca345..3904841477767136a783c87fc544120aa18a5072 100644 (file)
@@ -25,7 +25,7 @@ implementation
 
   uses
     SysUtils, Classes, Math,
-    e_log, e_graphics,
+    e_log, r_graphics,
     conbuf,
     g_main, g_console, g_game, g_menu, g_textures
   ;
index d181179835ff4c3b1ffb4b53ceb045d040bb81fa..991995d9c61392a30b744e3bc71e44b36af3da3f 100644 (file)
@@ -29,7 +29,7 @@ implementation
     g_holmes,
 {$ENDIF}
     SysUtils, Classes, Math,
-    e_graphics,
+    r_graphics,
     g_system, g_touch,
     MAPDEF, xprofiler, utils, wadreader,
     g_textures, e_input, e_sound,
@@ -823,7 +823,7 @@ begin
   else e_Clear(GL_COLOR_BUFFER_BIT, 0, 0, 0);
 end;
 
-procedure DrawMinimap(p: TPlayer; RenderRect: e_graphics.TRect);
+procedure DrawMinimap(p: TPlayer; RenderRect: TRect);
 var
   a, aX, aY, aX2, aY2, Scale, ScaleSz: Integer;
 
index 6b27ec337c9334c57de9a7094833c45164ec2ff0..f15a802c93d4751d5c50e8540eb165318ac16217 100644 (file)
@@ -25,7 +25,7 @@ implementation
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math,
     utils,
-    e_graphics,
+    r_graphics,
     g_game,
     g_gfx
   ;
similarity index 99%
rename from src/engine/e_graphics.pas
rename to src/game/opengl/r_graphics.pas
index 0f691aef424fdc5c39fd69ff915840ff593487cc..b16bd6fc010d074b8c89cb60be6b5bb5851e5297 100644 (file)
@@ -12,8 +12,8 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *)
-{$INCLUDE ../shared/a_modes.inc}
-unit e_graphics;
+{$INCLUDE ../../shared/a_modes.inc}
+unit r_graphics;
 
 interface
 
@@ -57,7 +57,7 @@ type
 
 
 //------------------------------------------------------------------
-// ïðîòîòèïû ôóíêöèé
+// прототипы функций
 //------------------------------------------------------------------
 procedure e_InitGL();
 procedure e_SetViewPort(X, Y, Width, Height: Word);
@@ -211,7 +211,7 @@ var
 //function e_getTextGLId (ID: DWORD): GLuint; begin result := e_Textures[ID].tx.id; end;
 
 //------------------------------------------------------------------
-// Èíèöèàëèçèðóåò OpenGL
+// Инициализирует OpenGL
 //------------------------------------------------------------------
 procedure e_InitGL();
 begin
@@ -268,7 +268,7 @@ begin
 end;
 
 //------------------------------------------------------------------
-// Èùåò ñâîáîäíûé ýëåìåíò â ìàññèâå òåêñòóð
+// Ищет свободный элемент в массиве текстур
 //------------------------------------------------------------------
 function FindTexture(): DWORD;
 var
@@ -295,7 +295,7 @@ begin
 end;
 
 //------------------------------------------------------------------
-// Ñîçäàåò òåêñòóðó
+// Создает текстуру
 //------------------------------------------------------------------
 function e_CreateTexture(FileName: String; var ID: DWORD): Boolean;
 var
@@ -1122,7 +1122,7 @@ begin
 end;
 
 //------------------------------------------------------------------
-// Óäàëÿåò òåêñòóðó èç ìàññèâà
+// Удаляет текстуру из массива
 //------------------------------------------------------------------
 procedure e_DeleteTexture(ID: DWORD);
 begin
@@ -1134,7 +1134,7 @@ begin
 end;
 
 //------------------------------------------------------------------
-// Óäàëÿåò âñå òåêñòóðû
+// Удаляет все текстуры
 //------------------------------------------------------------------
 procedure e_RemoveAllTextures();
 var
@@ -1148,7 +1148,7 @@ begin
 end;
 
 //------------------------------------------------------------------
-// Óäàëÿåò äâèæîê
+// Удаляет движок
 //------------------------------------------------------------------
 procedure e_ReleaseEngine();
 begin
index a738b4d2e84d0e8244ceec493cd6db2644ce8ffa..19599f006a29d27abe49a1b4854913ec8fb61554 100644 (file)
@@ -12,7 +12,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *)
-{$INCLUDE ../shared/a_modes.inc}
+{$INCLUDE ../../shared/a_modes.inc}
 unit r_items;
 
 interface
@@ -24,7 +24,7 @@ implementation
 
   uses
     SysUtils, Classes, Math,
-    e_graphics,
+    r_graphics,
     MAPDEF,
     g_basic, g_game,
     g_items
index d7d3a85516966b83a17b2b9252c00da8e4b8c0c6..eed9df907f484bceb2b6ff27c27c13bb573fc70c 100644 (file)
@@ -30,7 +30,7 @@ implementation
   uses
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math,
-    e_graphics,
+    r_graphics,
     g_basic, g_game, g_options,
     g_panel, g_map,
     r_panel
index fe822be6bfe871a16bbd0babad2ddf5be1bc5f06..9d65d477f04cea2c9d9cca83e902a329a77eca48 100644 (file)
@@ -24,7 +24,7 @@ implementation
 
   uses
     SysUtils, Classes, Math,
-    e_graphics,
+    r_graphics,
     MAPDEF,
     g_basic, g_game, g_phys,
     g_monsters
index c014443a90e83df676b224b4bdfeb31fe316559d..e82db0819e468fa02717f44089895a1963e505db 100644 (file)
@@ -25,7 +25,7 @@ implementation
 
   uses
     SysUtils, Classes, Math,
-    e_graphics,
+    r_graphics,
     g_basic, g_language, g_game, g_menu
   ;
 
index f6cc7cb65c37752dd1f5c11b3c5742e13a3478e3..43682f8cc5eaf61c5e53bfecf4e15c8fa17b1e6f 100644 (file)
@@ -27,7 +27,7 @@ implementation
   uses
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math, utils,
-    e_graphics,
+    r_graphics,
     g_basic, g_textures, g_game
   ;
 
index 03c3d10278e86dafcfd196ff54c87235f564a290..e143227b3592a3a5f3d0815bfb3d42ec6a919b05 100644 (file)
@@ -17,7 +17,7 @@ unit r_player;
 
 interface
 
-  uses g_player, e_graphics; // TPlayer, TRGB
+  uses g_player, r_graphics; // TPlayer, TRGB
 
   procedure r_Player_DrawAll;
   procedure r_Player_DrawDebug (p: TPlayer);
index a9447d5925afaea6ebe8b40b65c9aeb00418952b..b11ac28b3f49b9bdaa445a72c02f47ac72606916 100644 (file)
@@ -28,7 +28,7 @@ implementation
   uses
     SysUtils, Classes, Math,
     MAPDEF,
-    e_graphics,
+    r_graphics,
     g_basic, g_map, g_weapons, g_textures, g_main
   ;
 
index 3b1f085cbe140966178d4e60c19cedf425ae754e..974d744fcdc8beecf68c10a58267c333e8b2596e 100644 (file)
@@ -24,7 +24,7 @@ implementation
   uses
     SysUtils, Classes, Math,
     MAPDEF,
-    e_graphics,
+    r_graphics,
     g_basic, g_game,
     g_weapons
   ;
index 9f562621fe8d1366775a56d3d78ffa7178e5860d..dd65f61cf065a0252eb9b8076f9841dc5422c006 100644 (file)
@@ -48,7 +48,7 @@ implementation
     {$ENDIF}
     SysUtils, SDL, Math,
     {$INCLUDE ../nogl/noGLuses.inc}
-    e_log, e_graphics, e_input, e_sound,
+    e_log, r_graphics, e_input, e_sound,
     g_options, g_window, g_console, g_game, g_menu, g_gui, g_main, g_basic;
 
   const
index 6f48d28bef982189e1b68bd9243f897eb723ce5f..3ab85d2ab804130ecfc8e282c9c4898a9b533b6e 100644 (file)
@@ -41,7 +41,7 @@ implementation
 
   uses
     SysUtils, SDL2, Math, ctypes,
-    e_log, e_graphics, e_input, e_sound,
+    e_log, r_graphics, e_input, e_sound,
     {$INCLUDE ../nogl/noGLuses.inc}
     {$IFDEF ENABLE_HOLMES}
       g_holmes, sdlcarcass, fui_ctls,
index 3f999ed551d03babf7c615b457c774f810d1b605..c6a9e232048d3e5b670ad063c7f92a4753e990a9 100644 (file)
@@ -36,7 +36,7 @@ implementation
 
   uses
     SysUtils,
-    e_log, e_graphics, e_input, g_options, g_game, g_main, g_gui, g_weapons, g_console, g_window;
+    e_log, r_graphics, e_input, g_options, g_game, g_main, g_gui, g_weapons, g_console, g_window;
 
   var
     angleFire: Boolean;