MCPcopy Create free account
hub / github.com/bwapi/bwapi / Bitmap

Class Bitmap

bwapi/BWAPI/Source/BW/Bitmap.h:10–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 struct grpHead;
9
10 class Bitmap
11 {
12 public:
13 Bitmap(int width, int height, void* pBuffer = nullptr);
14
15 void resize(int width, int height);
16 bool isValid() const;
17
18 bool blitString(const char *pszStr, int x, int y, u8 bSize = 1);
19 void blitBitmap(const Bitmap *pSrc, int x = 0, int y = 0);
20 void BlitGrpFrame(const grpFrame *pGrp, int x = 0, int y = 0);
21 void BlitGraphic(const grpHead *pGrp, int frame = 0, int x = 0, int y = 0);
22
23 void plot(int x, int y, u8 color);
24 void drawLine(int x1, int y1, int x2, int y2, u8 color);
25
26 int width() const;
27 int height() const;
28 u8 *getData() const;
29
30 void clear();
31
32 private:
33 void plotX(int x, int y, u8 col);
34
35 void intersection(int& x1, int& y1, int x2, int y2) const;
36 void clipping(int& x1, int& y1, int& x2, int& y2) const;
37
38 u16 wid, ht;
39 u8 *data;
40 };
41
42
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected