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