meh
This commit is contained in:
@@ -143,7 +143,7 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool saveBMP(const std::string& filename, frame& frame) {
|
static bool saveBMP(const std::string& filename, const frame& frame) {
|
||||||
if (frame.colorFormat == frame::colormap::RGB) {
|
if (frame.colorFormat == frame::colormap::RGB) {
|
||||||
return saveBMP(filename, frame.getData(), frame.getWidth(), frame.getHeight());
|
return saveBMP(filename, frame.getData(), frame.getWidth(), frame.getHeight());
|
||||||
} else if (frame.colorFormat == frame::colormap::RGBA) {
|
} else if (frame.colorFormat == frame::colormap::RGBA) {
|
||||||
|
|||||||
@@ -48,11 +48,11 @@ public:
|
|||||||
colormap colorFormat = colormap::RGB;
|
colormap colorFormat = colormap::RGB;
|
||||||
compresstype cformat = compresstype::RAW;
|
compresstype cformat = compresstype::RAW;
|
||||||
|
|
||||||
const size_t& getWidth() {
|
const size_t& getWidth() const {
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
const size_t& getHeight() {
|
const size_t& getHeight() const {
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
frame() {};
|
frame() {};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public:
|
|||||||
Vec3() : x(0), y(0), z(0) {}
|
Vec3() : x(0), y(0), z(0) {}
|
||||||
Vec3(T x, T y, T z) : x(x), y(y), z(z) {}
|
Vec3(T x, T y, T z) : x(x), y(y), z(z) {}
|
||||||
Vec3(T scalar) : x(scalar), y(scalar), z(scalar) {}
|
Vec3(T scalar) : x(scalar), y(scalar), z(scalar) {}
|
||||||
Vec3(float[3] acd) : x(acd[0]), y(acd[1]), z(acd[2]) {}
|
Vec3(float acd[3]) : x(acd[0]), y(acd[1]), z(acd[2]) {}
|
||||||
|
|
||||||
Vec3(const class Vec2& vec2, T z = 0);
|
Vec3(const class Vec2& vec2, T z = 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user