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