Revision 2280,
620 bytes
checked in by mattausch, 18 years ago
(diff) |
removed dependency on ogre in gtpvisibility
|
Rev | Line | |
---|
[2280] | 1 | #include "CullingLogManager.h"
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | using namespace std;
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | namespace GtpVisibility {
|
---|
| 8 |
|
---|
| 9 | CullingLogManager *CullingLogManager::sLogManager = NULL;
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | CullingLogManager::CullingLogManager()
|
---|
| 13 | {
|
---|
| 14 | mOutStream.open("culling.log");
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 | CullingLogManager *CullingLogManager::GetSingleton()
|
---|
| 19 | {
|
---|
| 20 | if (!sLogManager)
|
---|
| 21 | {
|
---|
| 22 | sLogManager = new CullingLogManager();
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | return sLogManager;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | void CullingLogManager::DelSingleton()
|
---|
| 30 | {
|
---|
| 31 | if (sLogManager)
|
---|
| 32 | {
|
---|
| 33 | delete sLogManager;
|
---|
| 34 | sLogManager = NULL;
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | void CullingLogManager::LogMessage(const string &str)
|
---|
| 40 | {
|
---|
| 41 | mOutStream << str.c_str() << endl;
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.