Emulation of the 1970's Chip-8 machine. The emulator has 7 games that are unmodified from the original Chip-8 format.
LCD_ST7735/Bitmap1bpp.h
- Committer:
- taylorza
- Date:
- 2015-02-08
- Revision:
- 0:bc3f11b1b41f
File content as of revision 0:bc3f11b1b41f:
#include "stdint.h" #ifndef __BITMAP1BPP_H__ #define __BITMAP1BPP_H__ class Bitmap1bpp { public: Bitmap1bpp(uint16_t width, uint16_t height); ~Bitmap1bpp(); inline uint16_t getWidth() { return _width; } inline uint16_t getHeight() { return _height; } inline uint16_t getStride() { return _stride; } inline uint8_t *getBitmapData() { return _pBitmapData; } void clear(); void setPixel(int16_t x, int16_t y, uint16_t color); uint16_t getPixel(int16_t x, int16_t y); void fastHLine(int16_t x1, int16_t x2, int16_t y, uint16_t color); void fastVLine(int16_t y1, int16_t y2, int16_t x, uint16_t color); private: uint16_t _width; uint16_t _height; uint16_t _stride; uint8_t *_pBitmapData; }; #endif //__BITMAP1BPP_H__