shadow blending optimization

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2560 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-13 10:15:29 +00:00
parent b6b3f23c24
commit a5f4d3f2f8
8 changed files with 423 additions and 95 deletions
+3 -3
View File
@@ -533,7 +533,7 @@ void render_particles(int time, int typemask)
}
}
void particle_emit(int type, int *args, int basetime, int seed, vec &p)
void particle_emit(int type, int *args, int basetime, int seed, const vec &p)
{
if(type<0 || type>=MAXPARTYPES) return;
parttype &pt = parttypes[type];
@@ -546,7 +546,7 @@ void particle_emit(int type, int *args, int basetime, int seed, vec &p)
else particle_splash(type, args[0], args[1], p);
}
void particle_flash(int type, float scale, float angle, vec &p)
void particle_flash(int type, float scale, float angle, const vec &p)
{
angle *= RAD;
newparticle(p, vec(cosf(angle), sinf(angle), scale), 0, type);
@@ -585,7 +585,7 @@ void particle_trail(int type, int fade, const vec &s, const vec &e)
}
}
void particle_fireball(int type, vec &o)
void particle_fireball(int type, const vec &o)
{
newparticle(o, vec(0, 0, 0), (int)((parttypes[type].sz-1.0f)*100.0f), type);
}