mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-07 22:37:15 +00:00
20 lines
459 B
C++
20 lines
459 B
C++
#pragma once
|
|
|
|
// On Android, even OpenGL can lose allocated resources. This is a utility to keep
|
|
// track of them.
|
|
|
|
class GfxResourceHolder {
|
|
public:
|
|
virtual ~GfxResourceHolder() {}
|
|
virtual void GLLost() = 0;
|
|
};
|
|
|
|
void gl_lost_manager_init();
|
|
void gl_lost_manager_shutdown();
|
|
|
|
void register_gl_resource_holder(GfxResourceHolder *holder);
|
|
void unregister_gl_resource_holder(GfxResourceHolder *holder);
|
|
|
|
// Notifies all objects about the loss.
|
|
void gl_lost();
|