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