ADDED: GuiSetIconScale()

This commit is contained in:
Ray 2023-01-10 20:57:31 +01:00
parent 0ced5b1c0d
commit 42cc62e853

View File

@ -572,6 +572,7 @@ RAYGUIAPI const char *GuiIconText(int iconId, const char *text); // Get text wit
RAYGUIAPI unsigned int *GuiGetIcons(void); // Get raygui icons data pointer RAYGUIAPI unsigned int *GuiGetIcons(void); // Get raygui icons data pointer
RAYGUIAPI char **GuiLoadIcons(const char *fileName, bool loadIconsName); // Load raygui icons file (.rgi) into internal icons data RAYGUIAPI char **GuiLoadIcons(const char *fileName, bool loadIconsName); // Load raygui icons file (.rgi) into internal icons data
RAYGUIAPI void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color); RAYGUIAPI void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color);
RAYGUIAPI void GuiSetIconScale(int scale); // Set icon drawing size
#if !defined(RAYGUI_CUSTOM_ICONS) #if !defined(RAYGUI_CUSTOM_ICONS)
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
@ -3796,6 +3797,13 @@ void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color)
} }
} }
} }
// Set icon drawing size
void GuiSetIconScale(int scale)
{
if (scale >= 1) guiIconScale = scale;
}
#endif // !RAYGUI_NO_ICONS #endif // !RAYGUI_NO_ICONS
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------