Takashi Asano
/
linearMirrorMotion1017
sotsuron
Fork of linearMirrorMotion1017 by
renderclass.h@16:6dd2e60bc5bc, 2013-05-20 (annotated)
- Committer:
- hiromasaoku
- Date:
- Mon May 20 08:25:22 2013 +0000
- Revision:
- 16:6dd2e60bc5bc
- Child:
- 17:dce982e0a383
a safety commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hiromasaoku | 16:6dd2e60bc5bc | 1 | #include "mbed.h" |
hiromasaoku | 16:6dd2e60bc5bc | 2 | #include <vector> |
hiromasaoku | 16:6dd2e60bc5bc | 3 | |
hiromasaoku | 16:6dd2e60bc5bc | 4 | struct point2dl { |
hiromasaoku | 16:6dd2e60bc5bc | 5 | int x,y; |
hiromasaoku | 16:6dd2e60bc5bc | 6 | int laserSwitch; // laser {1: on 0:off} until next step |
hiromasaoku | 16:6dd2e60bc5bc | 7 | }; |
hiromasaoku | 16:6dd2e60bc5bc | 8 | |
hiromasaoku | 16:6dd2e60bc5bc | 9 | struct letter { |
hiromasaoku | 16:6dd2e60bc5bc | 10 | int pointnum; |
hiromasaoku | 16:6dd2e60bc5bc | 11 | vector<point2dl> letpoints; |
hiromasaoku | 16:6dd2e60bc5bc | 12 | }; |
hiromasaoku | 16:6dd2e60bc5bc | 13 | |
hiromasaoku | 16:6dd2e60bc5bc | 14 | class render{ |
hiromasaoku | 16:6dd2e60bc5bc | 15 | public: |
hiromasaoku | 16:6dd2e60bc5bc | 16 | void startRender(); |
hiromasaoku | 16:6dd2e60bc5bc | 17 | void setRender(vector<letter> *p); |
hiromasaoku | 16:6dd2e60bc5bc | 18 | void translating(float speed, float angle); |
hiromasaoku | 16:6dd2e60bc5bc | 19 | void stopRender(); |
hiromasaoku | 16:6dd2e60bc5bc | 20 | void draw(); |
hiromasaoku | 16:6dd2e60bc5bc | 21 | private: |
hiromasaoku | 16:6dd2e60bc5bc | 22 | vector<letter> *ptext; |
hiromasaoku | 16:6dd2e60bc5bc | 23 | vector<letter> translated; |
hiromasaoku | 16:6dd2e60bc5bc | 24 | int currentLetters; |
hiromasaoku | 16:6dd2e60bc5bc | 25 | int currentPoints; |
hiromasaoku | 16:6dd2e60bc5bc | 26 | point2dl drawPoint; |
hiromasaoku | 16:6dd2e60bc5bc | 27 | }; |