Function nanogui::nvgIsImageIcon

Function Documentation

bool nanogui::nvgIsImageIcon(int value)

Determine whether an icon ID is a texture loaded via nvgImageIcon.

The implementation defines all value < 1024 as image icons, and everything >= 1024 as an Entypo icon (see File entypo.h). The value 1024 exists to provide a generous buffer on how many images may have been loaded by NanoVG.

Return

Whether or not this is an image icon.

Parameters
  • value: The integral value of the icon.