BWAPI
|
00001 #include <BWAPI/Color.h> 00002 #pragma once 00003 00004 namespace BWAPI 00005 { 00006 class BitmapProxy 00007 { 00008 public: 00009 BitmapProxy(unsigned char *data, unsigned short width, unsigned short height, int x); 00010 Color operator[](int y); 00011 private: 00012 unsigned char *data; 00013 unsigned short width; 00014 unsigned short height; 00015 int x; 00016 }; 00017 00018 class Bitmap 00019 { 00020 public: 00021 BitmapProxy operator[](int x); 00022 unsigned short getWidth(); 00023 unsigned short getHeight(); 00024 00025 private: 00026 unsigned short wid; 00027 unsigned short ht; 00028 unsigned char *data; 00029 }; 00030 }