MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / ParticleSystem

Method ParticleSystem

cpp/5_Domain_Specific/smokeParticles/ParticleSystem.cpp:58–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56*/
57
58ParticleSystem::ParticleSystem(uint numParticles, bool bUseVBO, bool bUseGL)
59 : m_bInitialized(false)
60 , m_bUseVBO(bUseVBO)
61 , m_numParticles(numParticles)
62 , m_particleRadius(0.1f)
63 , m_doDepthSort(false)
64 , m_timer(NULL)
65 , m_time(0.0f)
66{
67 m_params.gravity = make_float3(0.0f, 0.0f, 0.0f);
68 m_params.globalDamping = 1.0f;
69 m_params.noiseSpeed = make_float3(0.0f, 0.0f, 0.0f);
70
71 _initialize(numParticles, bUseGL);
72}
73
74ParticleSystem::~ParticleSystem()
75{

Callers

nothing calls this directly

Calls 1

make_float3Function · 0.85

Tested by

no test coverage detected