MCPcopy Create free account
hub / github.com/assaultcube/AC / loopi

Function loopi

source/src/renderparticles.cpp:46–50  ·  view source on GitHub ↗

build initial 'hres' sided pyramid

Source from the content-addressed store, hash-verified

44 hemiindices = new GLushort[tris*3];
45 hemiverts[heminumverts++] = vec(0.0f, 0.0f, 1.0f); //build initial 'hres' sided pyramid
46 loopi(hres)
47 {
48 float a = PI2*float(i)/hres;
49 hemiverts[heminumverts++] = vec(cosf(a), sinf(a), 0.0f);
50 }
51 loopi(hres) genface(depth, 0, i+1, 1+(i+1)%hres);
52}
53

Callers 7

subdivideFunction · 0.70
inithemisphereFunction · 0.70
drawexplosionFunction · 0.70
particleinitFunction · 0.70
cleanupparticlesFunction · 0.70
newparticleFunction · 0.70
particle_cubeFunction · 0.70

Calls 5

vecClass · 0.85
newparticleFunction · 0.85
mulMethod · 0.80
dotMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected