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

Method ParticleRenderer

cpp/5_Domain_Specific/nbody/render_particles.cpp:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44#define GL_VERTEX_PROGRAM_POINT_SIZE_NV 0x8642
45
46ParticleRenderer::ParticleRenderer()
47 : m_pos(0)
48 , m_numParticles(0)
49 , m_pointSize(1.0f)
50 , m_spriteSize(2.0f)
51 , m_vertexShader(0)
52 , m_vertexShaderPoints(0)
53 , m_pixelShader(0)
54 , m_programPoints(0)
55 , m_programSprites(0)
56 , m_texture(0)
57 , m_pbo(0)
58 , m_vboColor(0)
59 , m_bFp64Positions(false)
60{
61 _initGL();
62}
63
64ParticleRenderer::~ParticleRenderer() { m_pos = 0; }
65

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected