NGL  6.5
The NCCA Graphics Library
NGLInit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 Jon Macey
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 #ifndef NGLINIT_H_
18 #define NGLINIT_H_
19 //----------------------------------------------------------------------------------------------------------------------
22 //----------------------------------------------------------------------------------------------------------------------
23 // must include types.h first for Real and GLEW if required
24 #include "Singleton.h"
25 #include "Types.h"
26 #include "VAOPrimitives.h"
27 
28 namespace ngl
29 {
30 
31 //----------------------------------------------------------------------------------------------------------------------
40 //----------------------------------------------------------------------------------------------------------------------
41 
42 class NGL_DLLEXPORT NGLInit : public Singleton<NGLInit>
43 {
44  friend class Singleton<NGLInit>;
45  public :
46 
47  protected :
48  //----------------------------------------------------------------------------------------------------------------------
50  //----------------------------------------------------------------------------------------------------------------------
51  NGLInit();
52 
53  //----------------------------------------------------------------------------------------------------------------------
55  //----------------------------------------------------------------------------------------------------------------------
56  ~NGLInit();
57 
58 };
59 } // end GL namespace
60 
61 #endif
62 
63 //----------------------------------------------------------------------------------------------------------------------
64 
a class to initialise all of the ngl elements includeing GLEW if needed as well vbo prims this class ...
Definition: NGLInit.h:42
main definition of types and namespace
#define NGL_DLLEXPORT
Definition: Types.h:65
implementation files for RibExport class
Definition: AABB.cpp:22
a simple singleton template inherited by other classes
Singleton template added to NGL framework 20/04/10 by jmacey.
Definition: Singleton.h:40