Global storage for textures; manages and draws them.
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
static bool myAllowTextures
whether textures are drawn
static std::map< std::string, int > myTextures
mapping from image paths to decals (initialization on first use)
static GUIGlID add(FXImage *i)
Adds a texture to use.
static int getTextureID(const std::string &filename, const bool mirrorX=false)
return texture id for the given filename (initialize on first use)
static bool texturesAllowed()
ask whether texture drawing is enabled
static int getMaxTextureSize()
return maximum number of pixels in x and y direction
static void allowTextures(const bool val)
switch texture drawing on and off
static void clearTextures()
clears loaded textures