destroy all textures on window destruction and restore OpenGL objects when Android resumes the app
This commit is contained in:
@@ -40,4 +40,5 @@ public:
|
||||
static bool load(const char* path);
|
||||
static void assign(uint16_t id, GLuint tex, int w = -1, int h = -1, GLuint internal_format = GL_RGBA8, GLuint format = GL_RGBA);
|
||||
static Texture2D& get(uint16_t id);
|
||||
static void invalidate();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user