Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/resources.c
| Show First 20 Lines • Show All 1,147 Lines • ▼ Show 20 Lines | void UI_GetThemeColor4ubv(int colorid, uchar col[4]) | ||||
| cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); | cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); | ||||
| col[0] = cp[0]; | col[0] = cp[0]; | ||||
| col[1] = cp[1]; | col[1] = cp[1]; | ||||
| col[2] = cp[2]; | col[2] = cp[2]; | ||||
| col[3] = cp[3]; | col[3] = cp[3]; | ||||
| } | } | ||||
| void UI_GetThemeColorType3fv(int colorid, int spacetype, float col[3]) | |||||
| { | |||||
| const uchar *cp; | |||||
| cp = UI_ThemeGetColorPtr(theme_active, spacetype, colorid); | |||||
| col[0] = ((float)cp[0]) / 255.0f; | |||||
| col[1] = ((float)cp[1]) / 255.0f; | |||||
| col[2] = ((float)cp[2]) / 255.0f; | |||||
| } | |||||
| void UI_GetThemeColorType3ubv(int colorid, int spacetype, uchar col[3]) | void UI_GetThemeColorType3ubv(int colorid, int spacetype, uchar col[3]) | ||||
| { | { | ||||
| const uchar *cp; | const uchar *cp; | ||||
| cp = UI_ThemeGetColorPtr(theme_active, spacetype, colorid); | cp = UI_ThemeGetColorPtr(theme_active, spacetype, colorid); | ||||
| col[0] = cp[0]; | col[0] = cp[0]; | ||||
| col[1] = cp[1]; | col[1] = cp[1]; | ||||
| col[2] = cp[2]; | col[2] = cp[2]; | ||||
| ▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines | |||||