Skip to content

Commit 24e0c79

Browse files
committed
nomnoml (UML) description of the library added
work in progress
1 parent 8c6f508 commit 24e0c79

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

UML.txt

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#arrowsize: 3
2+
#spacing: 30
3+
#lineWidth: 2
4+
#edges: hard
5+
#font: Input
6+
#fontSize: 10
7+
8+
[<abstract>Primitive ||
9+
[TYPE]|
10+
Color |
11+
getType() : TYPE
12+
getColor() : Color
13+
getCenter() : Vector
14+
]
15+
16+
[Point||
17+
P1 : Vector
18+
]
19+
20+
[Segment||
21+
P1, P2 : Vector
22+
]
23+
24+
[Triangle||
25+
P1, P2, P3 : Vector
26+
lighted : bool|
27+
flip() : void
28+
getDirection() : Vector
29+
]
30+
31+
[Point]<--[Primitive]
32+
[Segment]<--[Primitive]
33+
[Triangle]<--[Primitive]
34+
35+
[Mesh]+->[Point]
36+
[Mesh]+->[Segment]
37+
[Mesh]+->[Triangle]
38+
39+
[Mesh||
40+
add(Primitive*)|
41+
[primitives : Primitive*\[\]]
42+
]
43+
44+
[Object||
45+
Position : Vector
46+
transforming : bool
47+
X, Y, Z : Vector
48+
|
49+
mesh : Mesh*
50+
shaders : Shader*\[\]
51+
|
52+
[children : Object\[\]]
53+
]
54+
55+
[Object]-->[Mesh]
56+
57+
58+
[Scene||
59+
objects : Object*\[\]
60+
camera : Camera
61+
shaders : Shader*\[\]
62+
|
63+
[Light]
64+
|
65+
[Camera]
66+
]
67+
68+
[Scene]+->[<abstract>Shader]
69+
[Scene]+->[Object]
70+
71+
[SU|
72+
scenes
73+
flags
74+
]
75+
76+
[SU]+->[Scene]

0 commit comments

Comments
 (0)