This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconcept.txt
76 lines (75 loc) · 1.47 KB
/
concept.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Renderer
RenderManager
RenderObjects (2D,3D)
Render(TransformMatrix2D)
Render(TransformMatrix3D)
Render()
ViewMatrix2D
ViewMatrix3D
ProjectionMatrix2D
ProjectionMatrix3D
AddObject2D(*RenderObject,*TransformableObject2D)
AddObject3D(*RenderObject,*TransformableObject3D)
CurrentShader
ForceShader
ResourceManager
LoadTexture(Name,Path)
LoadMesh(Name,Path)
LoadShader(Name,VertexPath,FragmentPath,GeometryPath,...)
Map<string,texture>
Map<string,mesh>
Map<string,shader>
GetTexture(Name)
GetMesh(Name)
GetShader(Name)
SceneManager
CurrentScene
Init()
Update()
Quit()
SwitchScene(*Scene)
UpdateManager
UpdateObjects
Update()
Update()
InputManager
Framework
MainLoop - loops and calls RenderManager.Render() and so on
TransformableObject2D
Position
X
Y
Size
Width
Height
Scale
X
Y
TransformMatrix
TransformableObject3D
Camera3D
Position
Direction
ViewMatrix
Camera2D
Position
Zoom
Rotation
ViewMatrix
TweenSystem:
TweenableObject
SetTweenset()
StartTweens()
StopTweens()
PauseTweens()
ResumeTweens()
TweenableObject2D
GetTransform2D() *TransformableObject2D
TweenableObject3D
GetTransform3D() *TransformableObject3D
Tweenset:
Tweens (get executed instantly or after previous has finished)
- Parent (TweenableObject)
- Start()
- Update(delta_time) finished
- End()