Rename engine to hibis
This commit is contained in:
parent
f6b1c332ec
commit
48b07dd827
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -11,8 +11,7 @@
|
|||
*.a
|
||||
*.lib
|
||||
*-test-*
|
||||
*_test
|
||||
*.exe
|
||||
*.exec*
|
||||
*.pdb
|
||||
*.o
|
||||
*.obj
|
||||
|
|
8
dub.sdl
8
dub.sdl
|
@ -1,12 +1,12 @@
|
|||
name "gameengine"
|
||||
name "hibis"
|
||||
description "Game engine written in D"
|
||||
authors "Tulpenkiste"
|
||||
copyright "Copyright © 2023, Tulpenkiste"
|
||||
license "LGPL-3.0"
|
||||
targetType "none"
|
||||
dependency "gameengine:engine" version="*"
|
||||
dependency "gameengine:rsdl" version="*"
|
||||
dependency "gameengine:test" version="*"
|
||||
dependency "hibis:engine" version="*"
|
||||
dependency "hibis:rsdl" version="*"
|
||||
dependency "hibis:test" version="*"
|
||||
subPackage "engine"
|
||||
subPackage "renderer/rsdl"
|
||||
subPackage "test"
|
|
@ -1,4 +1,4 @@
|
|||
name "engine"
|
||||
license "LGPL-3.0"
|
||||
targetType "library"
|
||||
targetName "gameengine"
|
||||
targetName "hibiscore"
|
|
@ -1,5 +1,5 @@
|
|||
module gameengine.callback;
|
||||
module hibis.callback;
|
||||
|
||||
import gameengine.logging.types;
|
||||
import hibis.logging.types;
|
||||
|
||||
alias LoggerCallback = void function(LoggingSeverity severity, string message);
|
|
@ -1,10 +1,10 @@
|
|||
module gameengine.core.engine;
|
||||
module hibis.core.engine;
|
||||
|
||||
import gameengine.graphics.drawable;
|
||||
import gameengine.renderer.renderer;
|
||||
import gameengine.logging.types;
|
||||
import gameengine.callback;
|
||||
import gameengine.node.node;
|
||||
import hibis.graphics.drawable;
|
||||
import hibis.renderer.renderer;
|
||||
import hibis.logging.types;
|
||||
import hibis.callback;
|
||||
import hibis.node.node;
|
||||
import std.datetime.stopwatch;
|
||||
|
||||
import std.stdio;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module gameengine.graphics.drawable;
|
||||
import gameengine.renderer.renderer;
|
||||
module hibis.graphics.drawable;
|
||||
import hibis.renderer.renderer;
|
||||
|
||||
abstract class Drawable {
|
||||
void draw(Renderer* renderer);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module gameengine.logging.types;
|
||||
module hibis.logging.types;
|
||||
|
||||
enum LoggingSeverity {
|
||||
Message = 0,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module gameengine.math.types;
|
||||
module hibis.math.types;
|
||||
|
||||
// Structs
|
||||
// - Image
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module gameengine.node.node;
|
||||
module hibis.node.node;
|
||||
|
||||
abstract class Node {
|
||||
void process(float delta);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module gameengine.renderer.renderer;
|
||||
module hibis.renderer.renderer;
|
||||
|
||||
import gameengine.math.types;
|
||||
import hibis.math.types;
|
||||
|
||||
abstract class Renderer {
|
||||
// Draw
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module gameengine.resources.image;
|
||||
module hibis.resources.image;
|
||||
|
||||
import gameengine.resources.resource;
|
||||
import hibis.resources.resource;
|
||||
|
||||
abstract class Image : Resource {}
|
|
@ -1,3 +1,3 @@
|
|||
module gameengine.resources.resource;
|
||||
module hibis.resources.resource;
|
||||
|
||||
abstract class Resource {}
|
|
@ -1,7 +1,7 @@
|
|||
name "rsdl"
|
||||
dependency "gameengine:engine" version=">=0.0.0"
|
||||
dependency "hibis:engine" version=">=0.0.0"
|
||||
dependency "bindbc-sdl" version="~>1.3.5"
|
||||
targetType "library"
|
||||
targetName "gameengine_rsdl"
|
||||
targetName "hibis_rsdl"
|
||||
# Source paths so this can compile properly
|
||||
sourcePaths "./" "../../engine"
|
|
@ -1,8 +1,8 @@
|
|||
module gameengine_rsdl;
|
||||
module hibis_rsdl;
|
||||
|
||||
import bindbc.sdl;
|
||||
import gameengine.renderer.renderer;
|
||||
import gameengine.math.types;
|
||||
import hibis.renderer.renderer;
|
||||
import hibis.math.types;
|
||||
import std.exception;
|
||||
import std.format;
|
||||
|
||||
|
@ -55,6 +55,8 @@ class RSDL : Renderer {
|
|||
override void preDraw() {}
|
||||
override void postDraw() {}
|
||||
|
||||
override void update() {}
|
||||
|
||||
override void setWindowTitle(string title) {}
|
||||
|
||||
private SDL_Window* window;
|
|
@ -1,9 +1,10 @@
|
|||
name "test"
|
||||
description "Test of the game engine"
|
||||
description "Test of the Hibis game engine"
|
||||
authors "Tulpenkiste"
|
||||
copyright "Copyright © 2023, Tulpenkiste"
|
||||
license "LGPL-3.0"
|
||||
targetType "executable"
|
||||
dependency "gameengine:engine" version="*"
|
||||
dependency "gameengine:rsdl" version="*"
|
||||
targetName "hibistest.exec"
|
||||
dependency "hibis:engine" version="*"
|
||||
dependency "hibis:rsdl" version="*"
|
||||
sourcePaths "./" "../engine" "../renderer/rsdl"
|
|
@ -2,12 +2,12 @@ import std.stdio;
|
|||
import std.format;
|
||||
import std.conv;
|
||||
|
||||
import gameengine.core.engine;
|
||||
import gameengine.math.types;
|
||||
import gameengine.renderer.renderer;
|
||||
import gameengine.logging.types;
|
||||
import gameengine.callback;
|
||||
import gameengine_rsdl;
|
||||
import hibis.core.engine;
|
||||
import hibis.math.types;
|
||||
import hibis.renderer.renderer;
|
||||
import hibis.logging.types;
|
||||
import hibis.callback;
|
||||
import hibis_rsdl;
|
||||
|
||||
import core.thread;
|
||||
|
||||
|
|
Loading…
Reference in a new issue