blob: cf1d78667d0291fc72542a6f7f80c5a592e38f11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "Bitmap.h"
#include "ColorRgba.h"
namespace Javelin {
class RgbBitmap : public Bitmap {
public:
RgbBitmap(int w, int h)
: Bitmap(w, h, 3) {
}
const ColorRgb<unsigned char> *GetData() const {
return reinterpret_cast<ColorRgb<unsigned char> *>(data);
}
ColorRgb<unsigned char> *GetData() {
return reinterpret_cast<ColorRgb<unsigned char> *>(data);
}
};
}
|