void Texture2D::image(unsigned level, PixelFormat fmt, DataType type, const void *data)
{
void Texture2D::image(unsigned level, PixelFormat fmt, DataType type, const void *data)
{
void Texture2D::sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht, PixelFormat fmt, DataType type, const void *data)
{
void Texture2D::sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht, PixelFormat fmt, DataType type, const void *data)
{
image(0, fmt, UNSIGNED_BYTE, img.get_data());
}
image(0, fmt, UNSIGNED_BYTE, img.get_data());
}