Hiromasa Oku
/
linearMirrorMotion1017
this version 10/17
Fork of linearMirrorMotion by
Diff: renderclass.h
- Revision:
- 16:6dd2e60bc5bc
- Child:
- 17:dce982e0a383
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/renderclass.h Mon May 20 08:25:22 2013 +0000 @@ -0,0 +1,27 @@ +#include "mbed.h" +#include <vector> + +struct point2dl { + int x,y; + int laserSwitch; // laser {1: on 0:off} until next step +}; + +struct letter { + int pointnum; + vector<point2dl> letpoints; +}; + +class render{ + public: + void startRender(); + void setRender(vector<letter> *p); + void translating(float speed, float angle); + void stopRender(); + void draw(); + private: + vector<letter> *ptext; + vector<letter> translated; + int currentLetters; + int currentPoints; + point2dl drawPoint; +}; \ No newline at end of file