142 unsigned char colArr[3] = {col.
r, col.
g, col.
b};
143 for (
int j = 0; j < 3; j++) {
144 m_FirstCol[j] =
static_cast<float>(colArr[j]) / 255.0f;
156 unsigned char colArr[3] = {col.
r, col.
g, col.
b};
157 for (
int j = 0; j < 3; j++) {
169 unsigned char colArr[3] = {col.
r, col.
g, col.
b};
175 for (
int j = 0; j < 3; j++) {
176 m_FirstCol[j] =
static_cast<float>(colArr[j]) / 255.0f;
180 for (
int j = 0; j < 3; j++) {
182 static_cast<float>(colArr[j]) / 255.0f;
Centralized asset management system for images, audio, and fonts.
Logging system, assertion macros, platform utilities, and build/config macros.
Keyboard input system including key masks, shortcuts, and keybind registry.
Defines pixel color structures and frame/image data containers.
Stores and persists all keybinds used in FuncDoodle (default + user-defined).
Definition Keybinds.h:262
The FuncDoodle C++ namespace.
Definition Common.h:12
ColorChoice
Selects one of the editor color slots.
Definition ToolManager.h:46
@ Secondary
Secondary drawing color.
Definition ToolManager.h:59
@ First
Primary drawing color.
Definition ToolManager.h:52
ToolType
All available tools in the editor.
Definition Tool.h:33
@ Pencil
Definition Tool.h:34
A struct holding an RGB8 color.
Definition Frame.h:47
unsigned char r
Red channel in 8-bit RGB space.
Definition Frame.h:49
unsigned char g
Green channel in 8-bit RGB space.
Definition Frame.h:50
unsigned char b
Blue channel in 8-bit RGB space.
Definition Frame.h:51