mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
new file
This commit is contained in:
parent
5a56af5c67
commit
6420f478e7
0
panda/src/gui/Sources.pp
Normal file
0
panda/src/gui/Sources.pp
Normal file
11
panda/src/gui/guiManager.I
Normal file
11
panda/src/gui/guiManager.I
Normal file
@ -0,0 +1,11 @@
|
||||
// Filename: guiManager.I
|
||||
// Created by: cary (25Oct00)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
INLINE GuiManager* GuiManager::get_ptr(void) {
|
||||
if (_singleton == (GuiManager*)0L) {
|
||||
_singleton = new GuiManager;
|
||||
}
|
||||
return _singleton;
|
||||
}
|
16
panda/src/gui/guiManager.h
Normal file
16
panda/src/gui/guiManager.h
Normal file
@ -0,0 +1,16 @@
|
||||
// Filename: guiManager.h
|
||||
// Created by: cary (25Oct00)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __GUIMANAGER_H__
|
||||
#define __GUIMANAGER_H__
|
||||
|
||||
class GuiManager {
|
||||
private:
|
||||
static GuiManager* _singleton;
|
||||
public:
|
||||
INLINE static GuiManager* get_ptr(void);
|
||||
};
|
||||
|
||||
#endif /* __GUIMANAGER_H__ */
|
Loading…
x
Reference in New Issue
Block a user