minor refactor
This commit is contained in:
parent
fcb396344c
commit
34815cfd9c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -9,9 +9,9 @@
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
class GLFWwindow;
|
||||
class ImageData;
|
||||
struct DisplaySettings;
|
||||
struct GLFWwindow;
|
||||
struct GLFWmonitor;
|
||||
|
||||
enum class blendmode {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user