Add resource and image class (non functional) and add update
function to abstract class Renderer
This commit is contained in:
parent
5ed96bbb72
commit
f6b1c332ec
|
@ -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);
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@ abstract class Renderer {
|
|||
void preDraw();
|
||||
void postDraw();
|
||||
|
||||
// Update
|
||||
void update();
|
||||
|
||||
// Util
|
||||
void setWindowTitle(string title);
|
||||
}
|
5
engine/source/resources/image.d
Normal file
5
engine/source/resources/image.d
Normal file
|
@ -0,0 +1,5 @@
|
|||
module gameengine.resources.image;
|
||||
|
||||
import gameengine.resources.resource;
|
||||
|
||||
abstract class Image : Resource {}
|
3
engine/source/resources/resource.d
Normal file
3
engine/source/resources/resource.d
Normal file
|
@ -0,0 +1,3 @@
|
|||
module gameengine.resources.resource;
|
||||
|
||||
abstract class Resource {}
|
Loading…
Reference in a new issue