From 7252c655a2ee7dd9cb3a74b072ccbfde4d5f2d88 Mon Sep 17 00:00:00 2001 From: yggdrasil75 Date: Fri, 26 Dec 2025 12:50:19 -0500 Subject: [PATCH] meh --- util/output/bmpwriter.hpp | 2 +- util/output/frame.hpp | 4 ++-- util/vectorlogic/vec3.hpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/util/output/bmpwriter.hpp b/util/output/bmpwriter.hpp index f1db6e6..1173661 100644 --- a/util/output/bmpwriter.hpp +++ b/util/output/bmpwriter.hpp @@ -143,7 +143,7 @@ public: 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) { return saveBMP(filename, frame.getData(), frame.getWidth(), frame.getHeight()); } else if (frame.colorFormat == frame::colormap::RGBA) { diff --git a/util/output/frame.hpp b/util/output/frame.hpp index 9b29461..28fa3ad 100644 --- a/util/output/frame.hpp +++ b/util/output/frame.hpp @@ -48,11 +48,11 @@ public: colormap colorFormat = colormap::RGB; compresstype cformat = compresstype::RAW; - const size_t& getWidth() { + const size_t& getWidth() const { return width; } - const size_t& getHeight() { + const size_t& getHeight() const { return height; } frame() {}; diff --git a/util/vectorlogic/vec3.hpp b/util/vectorlogic/vec3.hpp index 5902f5f..56c98cd 100644 --- a/util/vectorlogic/vec3.hpp +++ b/util/vectorlogic/vec3.hpp @@ -14,7 +14,7 @@ public: Vec3() : x(0), y(0), z(0) {} Vec3(T x, T y, T z) : x(x), y(y), z(z) {} 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);