Hiromasa Oku
/
linearMirrorMotion1017
this version 10/17
Fork of linearMirrorMotion by
renderclass.h
- Committer:
- hiromasaoku
- Date:
- 2013-05-20
- Revision:
- 17:dce982e0a383
- Parent:
- 16:6dd2e60bc5bc
- Child:
- 18:6f86abfae754
File content as of revision 17:dce982e0a383:
#include "mbed.h" #include <vector> #define RENDER_INTERVAL 200 // in microseconds 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; Ticker renderTimer; };