Allegro 5 api
#include <allegro5/allegro_direct3d.h> bool al_have_d3d_non_pow2_texture_support(void)
Returns whether the Direct3D device supports textures whose dimensions are not powers of two.
Returns: True if device suports NPOT textures, false otherwise.