mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
Moved image code from bgfx into bimg library.
This commit is contained in:
25
3rdparty/pvrtc/RgbBitmap.h
vendored
Normal file
25
3rdparty/pvrtc/RgbBitmap.h
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "Bitmap.h"
|
||||
#include "ColorRgba.h"
|
||||
|
||||
namespace Javelin {
|
||||
|
||||
class RgbBitmap : public Bitmap {
|
||||
public:
|
||||
RgbBitmap() {}
|
||||
|
||||
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);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user