aboutsummaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
Diffstat (limited to 'img')
-rw-r--r--img/AssesManager.pngbin0 -> 571725 bytes
-rw-r--r--img/Rendering.pngbin0 -> 654711 bytes
-rw-r--r--img/flowchart_rendering.pngbin0 -> 631423 bytes
-rw-r--r--img/gameloop-class.puml42
-rw-r--r--img/gameloop-flow.puml21
-rw-r--r--img/poc-camera.pdfbin0 -> 169814 bytes
-rw-r--r--img/texture.pngbin0 -> 593444 bytes
7 files changed, 32 insertions, 31 deletions
diff --git a/img/AssesManager.png b/img/AssesManager.png
new file mode 100644
index 0000000..9dfb435
--- /dev/null
+++ b/img/AssesManager.png
Binary files differ
diff --git a/img/Rendering.png b/img/Rendering.png
new file mode 100644
index 0000000..d3491ba
--- /dev/null
+++ b/img/Rendering.png
Binary files differ
diff --git a/img/flowchart_rendering.png b/img/flowchart_rendering.png
new file mode 100644
index 0000000..41306a1
--- /dev/null
+++ b/img/flowchart_rendering.png
Binary files differ
diff --git a/img/gameloop-class.puml b/img/gameloop-class.puml
index c9d7917..e66b7d8 100644
--- a/img/gameloop-class.puml
+++ b/img/gameloop-class.puml
@@ -1,29 +1,30 @@
@startuml
+!include theme.ipuml
class LoopManager {
- +static LoopManager& getInstance()
+ +static LoopManager& getInstance()
- +void loop()
- +void setup()
- -void render()
- -void processInput()
- -void fixedUpdate()
- -void update()
- -bool gameRunning
- -LoopManager()
+ +void loop()
+ +void setup()
+ -void render()
+ -void processInput()
+ -void fixedUpdate()
+ -void update()
+ -bool gameRunning
+ -LoopManager()
}
class LoopTimer {
- +static LoopTimer& getInstance()
- +void start()
- +void update()
- +float getLag()
- +float getFixedDeltaTime()
- +void advanceFixedUpdate()
- +void enforceFrameRate()
- +float getDeltaTime()
- -float lag
- -float fixedDeltaTime
- -float deltaTime
+ +static LoopTimer& getInstance()
+ +void start()
+ +void update()
+ +float getLag()
+ +float getFixedDeltaTime()
+ +void advanceFixedUpdate()
+ +void enforceFrameRate()
+ +float getDeltaTime()
+ -float lag
+ -float fixedDeltaTime
+ -float deltaTime
}
LoopManager --> LoopTimer : uses
@@ -32,4 +33,5 @@ LoopManager : |-- processInput()
LoopManager : |-- fixedUpdate()
LoopManager : |-- update()
LoopManager : |-- render()
+' TODO: what is this supposed to be?
@enduml
diff --git a/img/gameloop-flow.puml b/img/gameloop-flow.puml
index 1a46cd7..e75ea42 100644
--- a/img/gameloop-flow.puml
+++ b/img/gameloop-flow.puml
@@ -1,23 +1,22 @@
@startuml
-title Game Loop Flowchart
-
+!include theme.ipuml
start
:Initialize LoopManager;
:Start LoopTimer;
repeat
- :Update LoopTimer;
- :Check for Events;
- :Process Input;
+ :Update LoopTimer;
+ :Check for Events;
+ :Process Input;
- while (Lag >= Fixed Delta Time?) is (yes)
- :Perform Fixed Update;
- :Advance Fixed Update;
- endwhile
+ while (Lag >= Fixed Delta Time?) is (yes)
+ :Perform Fixed Update;
+ :Advance Fixed Update;
+ endwhile
- :Perform Normal Update;
- :Render Frame;
+ :Perform Normal Update;
+ :Render Frame;
repeat while (Game Running?)
diff --git a/img/poc-camera.pdf b/img/poc-camera.pdf
new file mode 100644
index 0000000..c67c078
--- /dev/null
+++ b/img/poc-camera.pdf
Binary files differ
diff --git a/img/texture.png b/img/texture.png
new file mode 100644
index 0000000..97b79fe
--- /dev/null
+++ b/img/texture.png
Binary files differ