XPLMGetTexture
XPLM_API int XPLMGetTexture(
XPLMTextureID inTexture);
XPLMGetTexture returns the OpenGL texture ID of an X-Plane texture based on a generic identifying code. For example, you can get the texture for X-Plane’s UI bitmaps.