|
SPK::Model* fireModel = SPK::Model::create(
SPK::FLAG_RED | SPK::FLAG_GREEN | SPK::FLAG_BLUE | SPK::FLAG_ALPHA |
SPK::FLAG_SIZE | SPK::FLAG_ANGLE | SPK::FLAG_TEXTURE_INDEX,
SPK::FLAG_RED | SPK::FLAG_GREEN | SPK::FLAG_ALPHA | SPK::FLAG_ANGLE,
SPK::FLAG_RED | SPK::FLAG_GREEN | SPK::FLAG_TEXTURE_INDEX | SPK::FLAG_ANGLE,
SPK::FLAG_SIZE);
fireModel->setParam(SPK:ARAM_RED,0.8f,0.9f,0.8f,0.9f);
fireModel->setParam(SPK::PARAM_GREEN,0.5f,0.6f,0.5f,0.6f);
fireModel->setParam(SPK::PARAM_BLUE,0.3f);
fireModel->setParam(SPK::PARAM_ALPHA,0.4f,0.0f);
fireModel->setParam(SPK::PARAM_ANGLE,0.0f,2.0f * osg::PI,0.0f,2.0f * osg::PI);
fireModel->setParam(SPK::PARAM_TEXTURE_INDEX,0.0f,4.0f);
fireModel->setLifeTime(1.0f,1.5f);
如上代码 具体都代表啥意思呢 |
|