-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
72 lines (54 loc) · 1.64 KB
/
README
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
c++ class structure
===================
(X) Gob
- a definition for a graphic shape/object
(X) RectangleTemplate - extends Gob
- generic rectangle template
- has width, height
- overrides fixbb (fix bounding box)
- overrides xrange (drawing primitive)
(X) GobInstance - (concrete) - wrapper for Gob-instance, ie. rectangle
- has Gob* (?), BoundingBox, InstanceData
Drawable - (concrete) storage for
- has base color, pivot point, and reference point (original Gob)
- has bounding box
- has at (Point), scale, heading
- has displayable
- has generic buffer (X)
- (abstract) fixbb
- (abstract) xrange
Rectangle - extends Drawable
- has width, height
- overrides fixbb (fix bounding box)
- overrides xrange (drawing primitive)
- a particular rectangle
- has 4 point buffer
- has step (?)
View
- does draw(Canvas, Drawable)
DrawableGroup - extends Drawable (applies to group)
- has vector<Drawable *>
- overrides fixbb (fix bounding box)
- overrides xrange (drawing primitive)
Canvas -
FILE STRUCTURE
==============
primary
-------
dj_inst2.cpp,h - the mechanism that interacts with NaCl dealing with messages
dj_two.cc,h - the application logic -- the 'game state' mechanism
supporting
----------
canvas.h - low level interaction with bitmaps
view.h, cpp - logical to physical device units mapping
bitmap.h - reading fonts and bitmaps
ascii.h - hacked font
bb.h - bounding box logic
gob.h - graphic object, base class for renderable items
point.h - point class
rectangle.h, cpp - representation of rectangle (uses gob.h)
types.h - cruft
TODO
====
circles and triangles
change tone based on square size and color?