Rename engine to hibis

This commit is contained in:
Tulpen 2023-05-22 21:22:13 +01:00
parent f6b1c332ec
commit 48b07dd827
17 changed files with 42 additions and 40 deletions

3
.gitignore vendored
View file

@ -11,8 +11,7 @@
*.a
*.lib
*-test-*
*_test
*.exe
*.exec*
*.pdb
*.o
*.obj

View file

@ -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"

View file

@ -1,4 +1,4 @@
name "engine"
license "LGPL-3.0"
targetType "library"
targetName "gameengine"
targetName "hibiscore"

View file

@ -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);

View file

@ -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;

View file

@ -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);

View file

@ -1,4 +1,4 @@
module gameengine.logging.types;
module hibis.logging.types;
enum LoggingSeverity {
Message = 0,

View file

@ -1,4 +1,4 @@
module gameengine.math.types;
module hibis.math.types;
// Structs
// - Image

View file

@ -1,4 +1,4 @@
module gameengine.node.node;
module hibis.node.node;
abstract class Node {
void process(float delta);

View file

@ -1,6 +1,6 @@
module gameengine.renderer.renderer;
module hibis.renderer.renderer;
import gameengine.math.types;
import hibis.math.types;
abstract class Renderer {
// Draw

View file

@ -1,5 +1,5 @@
module gameengine.resources.image;
module hibis.resources.image;
import gameengine.resources.resource;
import hibis.resources.resource;
abstract class Image : Resource {}

View file

@ -1,3 +1,3 @@
module gameengine.resources.resource;
module hibis.resources.resource;
abstract class Resource {}

View file

@ -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"

View file

@ -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;

2
run.sh
View file

@ -1,3 +1,3 @@
#!/bin/bash
dub run gameengine:test
dub run hibis:test

View file

@ -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"

View file

@ -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;