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