globjects  1.0.0.000000000000
Strict OpenGL objects wrapper.
Singleton.h
Go to the documentation of this file.
1
2#pragma once
3
4
5namespace globjects
6{
7
8
9template<class T>
11{
12public:
13 static T * instance();
14
15protected:
16 explicit Singleton();
17 virtual ~Singleton();
18
19protected:
20 static T * s_instance;
21};
22
23
24} // namespace globjects
25
26
27#include <globjects/base/Singleton.inl>
Definition: Singleton.h:11
static T * s_instance
Definition: Singleton.h:20
static T * instance()
Contains all the classes that wrap OpenGL functionality.