Archived

This topic is now archived and is closed to further replies.

okouya

just a little help 2sec

Recommended Posts

okouya    122
is someone can explain me what means that and how to do this in pascal if you know #define FRAND (((float)rand()-(float)rand())/RAND_MAX) it was like this in the unit *****************************************************************************/ #ifndef __EXPLOSION_H_INCLUDED__ #define __EXPLOSION_H_INCLUDED__ /********************************* Includes *********************************/ #include "Particles.h" /*************************** Constants and Macros ***************************/ const CVector PARTICLE_VELOCITY (0.0f, 2.0f, 0.0f); const CVector VELOCITY_VARIATION (4.0f, 4.0f, 4.0f); const CVector PARTICLE_ACCELERATION (0.0f, -5.0f, 0.0f); const float PARTICLE_SIZE = 5.0f; const float SIZE_VARIATION = 2.0f; #define FRAND (((float)rand()-(float)rand())/RAND_MAX) /***************************** Data structures ******************************/ class CExplosion : public CParticleSystem { public: CExplosion(int maxParticles, CVector origin, float spread, GLuint texture); void Update(float elapsedTime); void Render(); bool IsDead() { return m_numParticles == 0; } protected: void InitializeParticle(int index); float m_spread; GLuint m_texture; // explosion texture }; #endif // __EXPLOSION_H_INCLUDED__ i wanna do it in pascal if you can help me it would be so cool love and peace

Share this post


Link to post
Share on other sites
Pactuul    122
honestly, unless your an old school guy or really need this stuff in pascal for a job, I''d drop pascal in a heartbeat for something like vb,c/c++, delphi, etc.

Besides, putting it in pascal is really easy, the conversion is pretty straight forward.

Share this post


Link to post
Share on other sites