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>
Tue, 29 Jun 2021 09:51:11 +0000 (12:51 +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 a83b3cb099e7b09f3efe42ed333a2a29ff4e3e30..c5854789fedc0b0b23b3ebe9038a47af4c45a331 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 d19ceb602c36e2177f58848d1590885c65319662..4c0871cadee413d049215045122de52313e69251 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 3ab72ed3526569938e387df6d6999539d7231804..1acdf1b537781e92be4b3edf5eaf214c82b9d810 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 e9ef05564104437196181c0d29b222cef99dbdce..a9c986e32885092b38454fa39251b12f85931b66 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 92ce86baa347358063dd0affc4388b7a6b51437f..9459c10a158f0c9715fad5bf90bd88ab8d655850 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 0e8b8af32e69477a562231fcb7edf33f091740f1..c086cb028e0ec05fa93cd00f126a996498d0d306 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 09322925bb7e21ce2935faaa9c104eae6d0c8e9b..13ab23ee0ccdf57421a7af06f9b0caf8b0f5637f 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 0f57f84feeaf19f70148dae8ba60fcd250d53fe2..772bda821f9b8798c0474fefb23373dc328b94d4 100644 (file)
@@ -276,7 +276,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 20eb21084930e03da229494e0af8d1406e9a85cb..6c250a43f1c8b5d3c20fe7ba9791015e4e70cb0f 100644 (file)
@@ -85,7 +85,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 dbef49896b1ec861c0c73a276da5dc8e7558b329..551b9c6ab89c90cf3eabfb9a27ae8fc4f39001e4 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 374d42051c8f9f107acf6f4ff789d349799bf441..f13daa3f8b8a9b9c656a3c376d631c19f759bbff 100644 (file)
@@ -40,7 +40,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 e200923be35bb5d3e9cf29583372a515bc073c7e..ca85e9e806aa6bd8539dcd9b89cdf06c5f332e5e 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 9ab45a0ed4485e9d665b7660207e7cd9bbc0d9a6..12f31371628ff386ac1f7ad95b2ae9866a331d6a 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 e2c706e18bd74aade01faf3e562208fa707cc4c2..a2ba6e0a89323a3c34409c05a59a81538d1da96d 100644 (file)
@@ -27,7 +27,7 @@ implementation
   uses
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math,
-    e_graphics,
+    r_graphics,
     g_basic, g_textures
   ;
 
index 25cd55f36cb3b1ca042886b22575b54db205bfa8..96dfa92ec0bf190fe7253747399a1948f254b93e 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 1f4061abf7fdc4ba9ff74475e09d7ece908356e1..fe7225f6573ebfdaa68a1649600b74e12b600b66 100644 (file)
@@ -42,7 +42,7 @@ implementation
   uses
     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 eec03232f7d26e99fd2619d39994ff5291b26257..40e0dff752b0b90b3ac59a9ebf9246cb96314896 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;