minor refactor

This commit is contained in:
MihailRis 2024-02-21 14:18:25 +03:00
parent fcb396344c
commit 34815cfd9c
2 changed files with 3 additions and 3 deletions

View File

@ -73,11 +73,11 @@ public:
return map;
}
static inline light_t combine(int r, int g, int b, int s) {
static constexpr light_t combine(int r, int g, int b, int s) {
return r | (g << 4) | (b << 8) | (s << 12);
}
static inline light_t extract(light_t light, ubyte channel) {
static constexpr light_t extract(light_t light, ubyte channel) {
return (light >> (channel << 2)) & 0xF;
}

View File

@ -9,9 +9,9 @@
#include <glm/glm.hpp>
class GLFWwindow;
class ImageData;
struct DisplaySettings;
struct GLFWwindow;
struct GLFWmonitor;
enum class blendmode {