minor refactor
This commit is contained in:
parent
fcb396344c
commit
34815cfd9c
@ -73,11 +73,11 @@ public:
|
|||||||
return map;
|
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);
|
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;
|
return (light >> (channel << 2)) & 0xF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
class GLFWwindow;
|
|
||||||
class ImageData;
|
class ImageData;
|
||||||
struct DisplaySettings;
|
struct DisplaySettings;
|
||||||
|
struct GLFWwindow;
|
||||||
struct GLFWmonitor;
|
struct GLFWmonitor;
|
||||||
|
|
||||||
enum class blendmode {
|
enum class blendmode {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user