Example for the LPC4088 QSB Base Board

Dependencies:   EALib mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Graphics.h Source File

Graphics.h

00001 
00002 #ifndef GRAPHICS_H
00003 #define GRAPHICS_H
00004 
00005 class Graphics {
00006 public:
00007 
00008     Graphics(uint16_t *pFrmBuf, uint16_t dispWidth, uint16_t dispHeight);
00009 
00010     void setFrameBuffer( uint16_t *pFrmBuf );
00011     void put_line(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int16_t color);
00012     void put_circle( int32_t cx, int32_t cy, int16_t color, int32_t radius, int32_t Filled );
00013 
00014 protected:
00015     uint16_t windowX;
00016     uint16_t windowY;
00017     uint16_t *pFrmBuf;
00018     
00019     int32_t abs(int32_t v1) const;
00020     
00021     virtual void plot4points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled );
00022     void plot8points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled );
00023     
00024 };
00025 
00026 #endif
00027 
00028