summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a04665d)
raw | patch | inline | side by side (parent: a04665d)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 8 Jun 2021 10:14:19 +0000 (13:14 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 29 Jun 2021 09:51:11 +0000 (12:51 +0300) |
30 files changed:
diff --git a/src/game/Doom2DF.lpr b/src/game/Doom2DF.lpr
index a83b3cb099e7b09f3efe42ed333a2a29ff4e3e30..c5854789fedc0b0b23b3ebe9038a47af4c45a331 100644 (file)
--- a/src/game/Doom2DF.lpr
+++ b/src/game/Doom2DF.lpr
{$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',
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',
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index d19ceb602c36e2177f58848d1590885c65319662..4c0871cadee413d049215045122de52313e69251 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
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;
diff --git a/src/game/g_gui.pas b/src/game/g_gui.pas
index 3ab72ed3526569938e387df6d6999539d7231804..1acdf1b537781e92be4b3edf5eaf214c82b9d810 100644 (file)
--- a/src/game/g_gui.pas
+++ b/src/game/g_gui.pas
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);
diff --git a/src/game/g_holmes.pas b/src/game/g_holmes.pas
index c173bd00312e9686a7e4cb9df0165251e0de4ce4..7b1463be9619c519e59d1dbb4c93e4ecec6cac65 100644 (file)
--- a/src/game/g_holmes.pas
+++ b/src/game/g_holmes.pas
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,
diff --git a/src/game/g_main.pas b/src/game/g_main.pas
index e9ef05564104437196181c0d29b222cef99dbdce..a9c986e32885092b38454fa39251b12f85931b66 100644 (file)
--- a/src/game/g_main.pas
+++ b/src/game/g_main.pas
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,
diff --git a/src/game/g_map.pas b/src/game/g_map.pas
index 92ce86baa347358063dd0affc4388b7a6b51437f..9459c10a158f0c9715fad5bf90bd88ab8d655850 100644 (file)
--- a/src/game/g_map.pas
+++ b/src/game/g_map.pas
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
diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas
index 0e8b8af32e69477a562231fcb7edf33f091740f1..c086cb028e0ec05fa93cd00f126a996498d0d306 100644 (file)
--- a/src/game/g_menu.pas
+++ b/src/game/g_menu.pas
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)
--- a/src/game/g_monsters.pas
+++ b/src/game/g_monsters.pas
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
diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas
index 0f57f84feeaf19f70148dae8ba60fcd250d53fe2..772bda821f9b8798c0474fefb23373dc328b94d4 100644 (file)
--- a/src/game/g_netmsg.pas
+++ b/src/game/g_netmsg.pas
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;
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 20eb21084930e03da229494e0af8d1406e9a85cb..6c250a43f1c8b5d3c20fe7ba9791015e4e70cb0f 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
{$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;
diff --git a/src/game/g_phys.pas b/src/game/g_phys.pas
index af569ea1e1784185f70f13aa5ae47f0ef955fa1d..81bdb78d6b095492405bb06c4afaf4d9601749d4 100644 (file)
--- a/src/game/g_phys.pas
+++ b/src/game/g_phys.pas
interface
uses
- e_graphics;
+ r_graphics;
type
PObj = ^TObj;
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index dbef49896b1ec861c0c73a276da5dc8e7558b329..551b9c6ab89c90cf3eabfb9a27ae8fc4f39001e4 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
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)
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)
--- a/src/game/g_textures.pas
+++ b/src/game/g_textures.pas
uses
SysUtils, Classes,
{$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
- e_graphics, MAPDEF, ImagingTypes, Imaging, ImagingUtility;
+ r_graphics, MAPDEF, ImagingTypes, Imaging, ImagingUtility;
type
TLevelTexture = record
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 374d42051c8f9f107acf6f4ff789d349799bf441..f13daa3f8b8a9b9c656a3c376d631c19f759bbff 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
{$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)
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)
g_holmes,
{$ENDIF}
SysUtils, Classes, Math,
- e_graphics,
+ r_graphics,
g_system, g_touch,
MAPDEF, xprofiler, utils, wadreader,
g_textures, e_input, e_sound,
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)
{$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)
rename from src/engine/e_graphics.pas
rename to src/game/opengl/r_graphics.pas
index 0f691aef424fdc5c39fd69ff915840ff593487cc..b16bd6fc010d074b8c89cb60be6b5bb5851e5297 100644 (file)
* 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
//------------------------------------------------------------------
-// ïðîòîòèïû ôóíêöèé
+// прототипы функций
//------------------------------------------------------------------
procedure e_InitGL();
procedure e_SetViewPort(X, Y, Width, Height: Word);
//function e_getTextGLId (ID: DWORD): GLuint; begin result := e_Textures[ID].tx.id; end;
//------------------------------------------------------------------
-// Èíèöèàëèçèðóåò OpenGL
+// Инициализирует OpenGL
//------------------------------------------------------------------
procedure e_InitGL();
begin
end;
//------------------------------------------------------------------
-// Èùåò ñâîáîäíûé ýëåìåíò â ìàññèâå òåêñòóð
+// Ищет свободный элемент в массиве текстур
//------------------------------------------------------------------
function FindTexture(): DWORD;
var
end;
//------------------------------------------------------------------
-// Ñîçäàåò òåêñòóðó
+// Создает текстуру
//------------------------------------------------------------------
function e_CreateTexture(FileName: String; var ID: DWORD): Boolean;
var
end;
//------------------------------------------------------------------
-// Óäàëÿåò òåêñòóðó èç ìàññèâà
+// Удаляет текстуру из массива
//------------------------------------------------------------------
procedure e_DeleteTexture(ID: DWORD);
begin
end;
//------------------------------------------------------------------
-// Óäàëÿåò âñå òåêñòóðû
+// Удаляет все текстуры
//------------------------------------------------------------------
procedure e_RemoveAllTextures();
var
end;
//------------------------------------------------------------------
-// Óäàëÿåò äâèæîê
+// Удаляет движок
//------------------------------------------------------------------
procedure e_ReleaseEngine();
begin
index a738b4d2e84d0e8244ceec493cd6db2644ce8ffa..19599f006a29d27abe49a1b4854913ec8fb61554 100644 (file)
* 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
uses
SysUtils, Classes, Math,
- e_graphics,
+ r_graphics,
MAPDEF,
g_basic, g_game,
g_items
index 9ab45a0ed4485e9d665b7660207e7cd9bbc0d9a6..12f31371628ff386ac1f7ad95b2ae9866a331d6a 100644 (file)
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)
uses
SysUtils, Classes, Math,
- e_graphics,
+ r_graphics,
MAPDEF,
g_basic, g_game, g_phys,
g_monsters
index c014443a90e83df676b224b4bdfeb31fe316559d..e82db0819e468fa02717f44089895a1963e505db 100644 (file)
uses
SysUtils, Classes, Math,
- e_graphics,
+ r_graphics,
g_basic, g_language, g_game, g_menu
;
index e2c706e18bd74aade01faf3e562208fa707cc4c2..a2ba6e0a89323a3c34409c05a59a81538d1da96d 100644 (file)
uses
{$INCLUDE ../nogl/noGLuses.inc}
SysUtils, Classes, Math,
- e_graphics,
+ r_graphics,
g_basic, g_textures
;
index 25cd55f36cb3b1ca042886b22575b54db205bfa8..96dfa92ec0bf190fe7253747399a1948f254b93e 100644 (file)
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)
uses
SysUtils, Classes, Math,
MAPDEF,
- e_graphics,
+ r_graphics,
g_basic, g_map, g_weapons, g_textures, g_main
;
index 3b1f085cbe140966178d4e60c19cedf425ae754e..974d744fcdc8beecf68c10a58267c333e8b2596e 100644 (file)
uses
SysUtils, Classes, Math,
MAPDEF,
- e_graphics,
+ r_graphics,
g_basic, g_game,
g_weapons
;
index 1f4061abf7fdc4ba9ff74475e09d7ece908356e1..fe7225f6573ebfdaa68a1649600b74e12b600b66 100644 (file)
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)
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)
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;