BOOL Snow::LoadOpenGLTextures() { glGenTextures( E_TEXTURECOUNT, & m_textureSnow[ 0 ] ); LoadImageFromResID(IDB_SNOW_LARGE, m_textureSnow[ 0 ] ); LoadImageFromResID(IDB_SNOW_MIDDLE, m_textureSnow[ 1 ] ); LoadImageFromResID(IDB_SNOW_SMALL, m_textureSnow[ 2 ] ); InitSnow(); LoadImageFromResID( IDB_SNOW_MIDDLE, m_textureSnow[ 3 ] ); return TRUE; }
void ParticleEngine::InitMixed() { switch(rand()%5) { case 0: InitSnow(); break; case 1: InitLeaves(0); break; case 2: InitLeaves(1); break; case 3: InitButterflies(0); break; case 4: InitButterflies(1); break; } }