R_RegisterModule("R_Explosions", r_explosion_start, r_explosion_shutdown, r_explosion_newmap);
}
-void R_NewExplosion(vec3_t org)
+void R_NewExplosion(const vec3_t org)
{
int i, j;
float dist, n;
GL_BlendFunc(GL_SRC_ALPHA, GL_ONE);
GL_DepthMask(false);
GL_DepthTest(true);
- R_Mesh_Matrix(&r_identitymatrix);
+ R_Mesh_Matrix(&identitymatrix);
numtriangles = EXPLOSIONTRIS;
numverts = EXPLOSIONVERTS;
alpha = e->alpha;
+ R_Mesh_VertexPointer(e->vert[0]);
+ R_Mesh_ColorPointer(NULL);
memset(&m, 0, sizeof(m));
m.tex[0] = R_GetTexture(explosiontexture);
m.pointer_texcoord[0] = explosiontexcoord2f[0];
- m.pointer_vertex = e->vert[0];
- R_Mesh_State(&m);
+ R_Mesh_TextureState(&m);
GL_Color(alpha, alpha, alpha, 1);