REVIEWED: External icons usage logic
This commit is contained in:
parent
0c264d5af3
commit
38bda86911
14
src/raygui.h
14
src/raygui.h
@ -574,15 +574,9 @@ RAYGUIAPI bool GuiCheckIconPixel(int iconId, int x, int y); // Check icon pi
|
|||||||
#define RAYGUI_CLITERAL(name) (name)
|
#define RAYGUI_CLITERAL(name) (name)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(RAYGUI_NO_RICONS)
|
#if !defined(RAYGUI_NO_RICONS) && !defined(RAYGUI_CUSTOM_RICONS)
|
||||||
|
|
||||||
#if defined(RAYGUI_CUSTOM_RICONS)
|
|
||||||
|
|
||||||
#define RICONS_IMPLEMENTATION
|
|
||||||
#include "ricons.h" // External icons data provided, it can be generated with rGuiIcons tool
|
|
||||||
|
|
||||||
#else // Embedded raygui icons, no external file provided
|
|
||||||
|
|
||||||
|
// Embedded raygui icons, no external file provided
|
||||||
#define RICON_SIZE 16 // Size of icons (squared)
|
#define RICON_SIZE 16 // Size of icons (squared)
|
||||||
#define RICON_MAX_ICONS 256 // Maximum number of icons
|
#define RICON_MAX_ICONS 256 // Maximum number of icons
|
||||||
#define RICON_MAX_NAME_LENGTH 32 // Maximum length of icon name id
|
#define RICON_MAX_NAME_LENGTH 32 // Maximum length of icon name id
|
||||||
@ -1125,9 +1119,7 @@ static unsigned int guiIcons[RICON_MAX_ICONS*RICON_DATA_ELEMENTS] = {
|
|||||||
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // RICON_255
|
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // RICON_255
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // RAYGUI_CUSTOM_RICONS
|
#endif // !RAYGUI_NO_RICONS && !RAYGUI_CUSTOM_RICONS
|
||||||
|
|
||||||
#endif // !RAYGUI_NO_RICONS
|
|
||||||
|
|
||||||
#ifndef RICON_SIZE
|
#ifndef RICON_SIZE
|
||||||
#define RICON_SIZE 0
|
#define RICON_SIZE 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user