add file picking for osx and ios and implement equirectangular import

This commit is contained in:
2017-12-09 09:07:42 +00:00
parent d18b1103bb
commit f4cd7fdc62
20 changed files with 218 additions and 8 deletions

View File

@@ -82,6 +82,16 @@ bool Texture2D::load(std::string filename)
return false;
return create(img);
}
bool Texture2D::load_file(std::string filename)
{
LOG("load texture %s", filename.c_str());
ui::Image img;
if (!img.load_file(filename))
return false;
return create(img);
}
void Texture2D::update(const uint8_t* data)
{
bind();