57 for (
int k = 0; k <
refdef.numCoronas; k++) {
65 verts = 12 + c->
radius / 8;
71 memset(&
r_state.color_array[4], 0, verts * 2 *
sizeof(
vec4_t));
76 for (
int i = verts;
i >= 0;
i--) {
77 const float a = (
M_PI * 2 / verts) *
i;
80 for (
int j = 0; j < 3; j++)
88 glDrawArrays(GL_TRIANGLE_FAN, 0, vertind / 3);
void R_Color(const vec4_t rgba)
Change the color to given value.
void R_ResetArrayState(void)
void R_AddCorona(const vec3_t org, float radius, const vec3_t color)
QGL_EXTERN int GLboolean GLfloat * v
local graphics definitions
void R_EnableTexture(gltexunit_t *texunit, bool enable)
void R_BlendFunc(GLenum src, GLenum dest)
void R_EnableColorArray(bool enable)
coronas are soft, alpha-blended, rounded polys
#define VectorCopy(src, dest)