It is currently Sat Aug 19, 2017 2:23 am

All times are UTC - 5 hours




 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Shader VMK 110 - First Game Prep
PostPosted: Fri Nov 27, 2015 9:14 pm 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
This short VMK prepares the Shader Engine to be used to create the first full game named Zing. After you finish this VMK, start the Zing game development process by watching the Zing VMK series which starts here: http://www.marekknows.com/download_zing.php


Offline
 Profile  
 
 Post subject: Re: Shader VMK 110 - First Game Prep
PostPosted: Sun Nov 29, 2015 11:37 am 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
I just noticed that I forgot to update the Settings constructor to randomly choose a seed. Make sure you change the constructor to look like this:

//------------------------------------------------------------------------
Settings::Settings() :
   Singleton( TYPE_SETTINGS ),
    _uPhysicsRefreshRateHz( 100 ), //should not be less than 24Hz
   _isWindowedMode( false ),
   _gamePixelSize( 1024, 768 ),
   _eDebugLogging( DEBUG_NONE )
{
   //random number seed
   std::random_device randomDevice;
   _uRandNumGenSeed = randomDevice();
   _randomEngine.seed( _uRandNumGenSeed );

   logMemoryAllocation( true );

   s_pSettings = this;
}//Settings


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 1 guest


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