Operating System

Dependencies:   UnitTest wolfssh mDNS wolfcrypt wolfSSL

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vga.h Source File

vga.h

00001 
00002 
00003 #ifndef __MYOS__DRIVERS__VGA_H
00004 #define __MYOS__DRIVERS__VGA_H
00005 
00006 namespace myos
00007 {
00008     namespace drivers
00009     {
00010 
00011         class VideoGraphicsArray
00012         {
00013         protected:
00014             virtual uint8_t GetColorIndex(uint8_t r, uint8_t g, uint8_t b);
00015 
00016 
00017         public:
00018             VideoGraphicsArray();
00019             ~VideoGraphicsArray();
00020 
00021             virtual bool SupportsMode(uint32_t width, uint32_t height, uint32_t colordepth);
00022             virtual bool SetMode(uint32_t width, uint32_t height, uint32_t colordepth);
00023             virtual void PutPixel(int32_t x, int32_t y, uint8_t r, uint8_t g, uint8_t b);
00024             virtual void PutPixel(int32_t x, int32_t y, uint8_t colorIndex);
00025 
00026             virtual void FillRectangle(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint8_t r, uint8_t g, uint8_t b);
00027 
00028         };
00029 
00030     }
00031 }
00032 
00033 #endif