]> git.tdb.fi Git - libs/gl.git/blob - source/resources/resourceobserver.h
Guard against hitting the end of the array in get_gl_type
[libs/gl.git] / source / resources / resourceobserver.h
1 #ifndef MSP_GL_RESOURCEOBSERVER_H_
2 #define MSP_GL_RESOURCEOBSERVER_H_
3
4 namespace Msp {
5 namespace GL {
6
7 class Resource;
8
9 class ResourceObserver
10 {
11 protected:
12         ResourceObserver() { }
13 public:
14         virtual ~ResourceObserver() { }
15
16         virtual void resource_loaded(Resource &) { }
17         virtual void resource_unloaded(Resource &) { }
18         virtual void resource_removed(Resource &) { }
19 };
20
21 } // namespace GL
22 } // namespace Msp
23
24 #endif