Library for 3.2'' uLcd Picaso Display4D system Picaso Serial Environment Command Set web: http://www.4dsystems.com.au/product/20/67/Processors_Graphics/PICASO/

Committer:
adelino
Date:
Sun Apr 05 13:54:48 2015 +0000
Revision:
1:a74e42cf52b2
PicasoLib version 2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
adelino 1:a74e42cf52b2 1 #ifndef TRIANGLE_H
adelino 1:a74e42cf52b2 2 #define TRIANGLE_H
adelino 1:a74e42cf52b2 3
adelino 1:a74e42cf52b2 4 #include "Screen.h"
adelino 1:a74e42cf52b2 5 #include "Sprite.h"
adelino 1:a74e42cf52b2 6
adelino 1:a74e42cf52b2 7 class Triangle:public Sprite
adelino 1:a74e42cf52b2 8 {
adelino 1:a74e42cf52b2 9 public:
adelino 1:a74e42cf52b2 10 /** Construct a filled Triangle
adelino 1:a74e42cf52b2 11 *
adelino 1:a74e42cf52b2 12 * @param mScreen the pointer screen
adelino 1:a74e42cf52b2 13 * @params x1
adelino 1:a74e42cf52b2 14 * @params y1
adelino 1:a74e42cf52b2 15 * @params x2
adelino 1:a74e42cf52b2 16 * @params y2
adelino 1:a74e42cf52b2 17 * @params x3
adelino 1:a74e42cf52b2 18 * @params y3
adelino 1:a74e42cf52b2 19 * @param _color the background color
adelino 1:a74e42cf52b2 20 */
adelino 1:a74e42cf52b2 21
adelino 1:a74e42cf52b2 22 Triangle(Screen* mScreen,UINT16 x1,UINT16 y1,
adelino 1:a74e42cf52b2 23 UINT16 x2,UINT16 y2,
adelino 1:a74e42cf52b2 24 UINT16 x3,UINT16 y3,
adelino 1:a74e42cf52b2 25 Color _color);
adelino 1:a74e42cf52b2 26 //
adelino 1:a74e42cf52b2 27 virtual void draw(void);
adelino 1:a74e42cf52b2 28 //
adelino 1:a74e42cf52b2 29 virtual ~Triangle(void);
adelino 1:a74e42cf52b2 30 //
adelino 1:a74e42cf52b2 31 void update(float delta);
adelino 1:a74e42cf52b2 32
adelino 1:a74e42cf52b2 33
adelino 1:a74e42cf52b2 34 //setter
adelino 1:a74e42cf52b2 35 void setInvisible(bool _state);
adelino 1:a74e42cf52b2 36 //
adelino 1:a74e42cf52b2 37 void setNewPosition(INT16 _xnew,INT16 _ynew);
adelino 1:a74e42cf52b2 38 //
adelino 1:a74e42cf52b2 39 void setNewPosition(INT16 _xnew,INT16 _ynew,bool isScreenLimits);
adelino 1:a74e42cf52b2 40
adelino 1:a74e42cf52b2 41
adelino 1:a74e42cf52b2 42 protected:
adelino 1:a74e42cf52b2 43 UINT16 myX1,myY1;
adelino 1:a74e42cf52b2 44 UINT16 myX2,myY2;
adelino 1:a74e42cf52b2 45 UINT16 myX3,myY3;
adelino 1:a74e42cf52b2 46 UINT16 myU,myV;
adelino 1:a74e42cf52b2 47 };
adelino 1:a74e42cf52b2 48
adelino 1:a74e42cf52b2 49 #endif