![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Example for the LPC4088 QSB Base Board
Graphics.h@1:b00a5c2416a7, 2014-04-09 (annotated)
- Committer:
- embeddedartists
- Date:
- Wed Apr 09 09:48:28 2014 +0000
- Revision:
- 1:b00a5c2416a7
- Parent:
- 0:7ce952ea2c4c
Updated to latest version of EALib
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
embeddedartists | 0:7ce952ea2c4c | 1 | |
embeddedartists | 0:7ce952ea2c4c | 2 | #ifndef GRAPHICS_H |
embeddedartists | 0:7ce952ea2c4c | 3 | #define GRAPHICS_H |
embeddedartists | 0:7ce952ea2c4c | 4 | |
embeddedartists | 0:7ce952ea2c4c | 5 | class Graphics { |
embeddedartists | 0:7ce952ea2c4c | 6 | public: |
embeddedartists | 0:7ce952ea2c4c | 7 | |
embeddedartists | 0:7ce952ea2c4c | 8 | Graphics(uint16_t *pFrmBuf, uint16_t dispWidth, uint16_t dispHeight); |
embeddedartists | 0:7ce952ea2c4c | 9 | |
embeddedartists | 0:7ce952ea2c4c | 10 | void setFrameBuffer( uint16_t *pFrmBuf ); |
embeddedartists | 0:7ce952ea2c4c | 11 | void put_line(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int16_t color); |
embeddedartists | 0:7ce952ea2c4c | 12 | void put_circle( int32_t cx, int32_t cy, int16_t color, int32_t radius, int32_t Filled ); |
embeddedartists | 0:7ce952ea2c4c | 13 | |
embeddedartists | 0:7ce952ea2c4c | 14 | protected: |
embeddedartists | 0:7ce952ea2c4c | 15 | uint16_t windowX; |
embeddedartists | 0:7ce952ea2c4c | 16 | uint16_t windowY; |
embeddedartists | 0:7ce952ea2c4c | 17 | uint16_t *pFrmBuf; |
embeddedartists | 0:7ce952ea2c4c | 18 | |
embeddedartists | 0:7ce952ea2c4c | 19 | int32_t abs(int32_t v1) const; |
embeddedartists | 0:7ce952ea2c4c | 20 | |
embeddedartists | 0:7ce952ea2c4c | 21 | virtual void plot4points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled ); |
embeddedartists | 0:7ce952ea2c4c | 22 | void plot8points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled ); |
embeddedartists | 0:7ce952ea2c4c | 23 | |
embeddedartists | 0:7ce952ea2c4c | 24 | }; |
embeddedartists | 0:7ce952ea2c4c | 25 | |
embeddedartists | 0:7ce952ea2c4c | 26 | #endif |
embeddedartists | 0:7ce952ea2c4c | 27 | |
embeddedartists | 0:7ce952ea2c4c | 28 | |
embeddedartists | 0:7ce952ea2c4c | 29 |