Add resource and image class (non functional) and add update function to abstract class Renderer

This commit is contained in:
Tulpen 2023-05-22 21:15:51 +01:00
parent 5ed96bbb72
commit f6b1c332ec
4 changed files with 12 additions and 1 deletions

View file

@ -38,7 +38,7 @@ class Engine {
}
void runNodePhysicsProcesses() {
// Schade!
// Schade! Have the wrong function content while I figure out how std.datetime.watch works
const float current = watch.peek.total!"msecs" / 1_000;
float delta = (current - previousProcessTick);

View file

@ -11,6 +11,9 @@ abstract class Renderer {
void preDraw();
void postDraw();
// Update
void update();
// Util
void setWindowTitle(string title);
}

View file

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

View file

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