AlphaBitmap.h 276 B

12345678910111213141516171819
  1. #pragma once
  2. #include "Bitmap.h"
  3. namespace Javelin {
  4. class AlphaBitmap : public Bitmap {
  5. public:
  6. AlphaBitmap(int w, int h)
  7. : Bitmap(w, h, 1) {
  8. }
  9. const unsigned char *GetData() const { return data; }
  10. unsigned char *GetData() { return data; }
  11. };
  12. }