==================================================================================== More...
Static Public Member Functions | |
| template<class T , class U > | |
| static void | drawFanLight (T posIt, U timeIt, CPSFanLight &f, uint size, uint32 srcStep) |
====================================================================================
Well, we could have put a method template in CPSFanLight, but some compilers want the definition of the methods in the header, and some compilers don't want friend with function template, so we use a static method template of a friend class instead, which gives us the same result :)
Definition at line 69 of file ps_fan_light.cpp.
| static void NL3D::CPSFanLightHelper::drawFanLight | ( | T | posIt, | |
| U | timeIt, | |||
| CPSFanLight & | f, | |||
| uint | size, | |||
| uint32 | srcStep | |||
| ) | [inline, static] |
Definition at line 73 of file ps_fan_light.cpp.
References NL3D::CPSRotated2DParticle::_Angle2D, NL3D::CPSRotated2DParticle::_Angle2DScheme, NL3D::CPSColoredParticle::_ColorScheme, NL3D::CPSMaterial::_Mat, NL3D::CPSFanLight::_MoveIntensity, NL3D::CPSFanLight::_NbFans, NL3D::CPSLocatedBindable::_Owner, NL3D::CPSSizedParticle::_ParticleSize, NL3D::CPSFanLight::_PhaseSmoothness, NL3D::CPSFanLight::_PhaseSpeed, NL3D::CPSFanLight::_RandomPhaseTab, NL3D::CPSFanLight::_RandomPhaseTabInitialized, NL3D::CPSSizedParticle::_SizeScheme, NL3D::IDriver::activeIndexBuffer(), NL3D::IDriver::activeVertexBuffer(), NL3D::CVertexBuffer::AGPVolatile, CHECK_VERTEX_BUFFER, NL3D::CPSLocatedBindable::computeI(), NL3D::CPSLocatedBindable::computeK(), NL3D::FanLightBufSize, NL3D::CVertexBufferReadWrite::getColorPointer(), NL3D::CPSUtil::getCos(), NL3D::CPSLocatedBindable::getDriver(), NL3D::CPSFanLight::getNumFanlightsInVB(), NL3D::CPSUtil::getSin(), NL3D::CPSFanLight::getVBnIB(), NL3D::IDriver::getVertexColorFormat(), NL3D::CVertexBufferReadWrite::getVertexCoordPointer(), NL3D::CVertexBuffer::getVertexSize(), I, NL3D::CPSLocated::incrementNbDrawnParticles(), NL3D::CVertexBuffer::lock(), NL3D::CPSAttribMaker< T >::make(), min, NL_PS_FUNC, nlassert, PARTICLES_CHECK_MEM, NL3D::IDriver::renderTriangles(), NL3D::CPSAttribMaker< T >::setColorType(), NL3D::CVertexBuffer::setNumVertices(), NL3D::CVertexBuffer::setPreferredMemory(), and NL3D::CPSLocatedBindable::setupDriverModelMatrix().
Referenced by NL3D::CPSFanLight::draw().
1.6.1