It is currently Wed Aug 23, 2017 6:43 am

All times are UTC - 5 hours




 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: Shader VMK 4 - Singleton
PostPosted: Tue Aug 21, 2012 6:39 am 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
The Singleton class is created in this VMK. This class will be used to manage all singleton objects that we create in the engine making sure that only one instance of each type is allowed and the order of contruction is well defined.


Offline
 Profile  
 
 Post subject: Re: Shader VMK 4 - Singleton
PostPosted: Wed Aug 22, 2012 2:55 am 

Joined: Sat Aug 16, 2008 7:58 am
Posts: 448
Inside the constructor the First throw statement you didn't scroll over far enough.
This is what I have

throw ExceptionHandler( s_aSingletons.at( i ).strSingletonName + " must be constructed before constructing " + s_aSingletons.at( eType ).


could you please let me know the rest of that line. Thank You


Offline
 Profile  
 
 Post subject: Re: Shader VMK 4 - Singleton
PostPosted: Wed Aug 22, 2012 4:05 am 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
Thanks skilz80 for catching that. I just had a look at the code and I noticed that I also forgot a very important piece in the code. Can you guess what it is? I just finished recording VMK 7, so the update to this will be available in VMK 8.


Offline
 Profile  
 
 Post subject: Re: Shader VMK 4 - Singleton
PostPosted: Fri Aug 24, 2012 3:40 am 

Joined: Sat Aug 16, 2008 7:58 am
Posts: 448
It seems to me that you forgot to include the header file for the std::array<> .


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

cron