static Texture * create(const std::string &image_file, WrapMode wrap=CLAMP_TO_EDGE, FilterMode filter=LINEAR)
Definition: texture.cpp:53
Management of OpenGL textures.
Definition: texture_manager.h:53
void discretize_image(std::vector< unsigned char > &data, int width, int height, int channels, int num_stripes)
Discretize a gradually varying-color (from left to right) image into a set of uniform colored vertica...
Definition: texture.cpp:196