I used EXT_secondary_color to do it in AF when the gidrahs with more than 1 hitpoint get shot. Here's a bit of code I used to set up the state in SPGL:
if (GLCaps.GL_EXT_secondary_color) {
GL.glEnable(GL.GL_COLOR_SUM_EXT);
GL.glSecondaryColor3ubEXT((byte)255, (byte)255, (byte)255);
}
GL.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE);
GL.glEnableClientState(GL.GL_VERTEX_ARRAY);
GL.glEnableClientState(GL.GL_TEXTURE_COORD_ARRAY);
GL.glEnableClientState(GL.GL_COLOR_ARRAY);
GL.glEnable(GL.GL_TEXTURE_2D);
GL.glEnable(GL.GL_BLEND);
GL.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_MODULATE);
That draws a white sprite like it's been struck by a bullet. Perfect. Works sorta ok if EXT_secondary_color is not supported as well but nearly all cards support it so that's not a problem.
Cas
