146 const vec3_t points[] = { { pos[0], pos[1], pos[2] }, { pos[0] + up[0], pos[1] + up[1], pos[2] + up[2] }, { pos[0]
147 + up[0] + right[0], pos[1] + up[1] + right[1], pos[2] + up[2] + right[2] }, { pos[0] + right[0], pos[1]
148 + right[1], pos[2] + right[2] } };
150 R_BindArray(GL_TEXTURE_COORD_ARRAY, GL_FLOAT, texcoords);
152 glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
188 const float radius = p->
size[0];
189 const float thickness = p->
size[1];
203 const vec3_t points[] = { { p->
s[0], p->
s[1], p->
s[2] }, { p->
v[0], p->
v[1], p->
v[2] } };
207 glEnable(GL_LINE_SMOOTH);
213 glDrawArrays(GL_LINE_STRIP, 0, 2);
220 glDisable(GL_LINE_SMOOTH);
void R_UseProgram(r_program_t *prog)
#define VectorCopy(src, dest)
void R_EnableTexture(gltexunit_t *texunit, bool enable)
void R_TexEnv(GLenum mode)
void R_DrawModelParticle(modelInfo_t *mi)
Renders a particle model for the battlescape.
static void R_GetSpriteVectors(const ptl_t *p, vec3_t right, vec3_t up)
Get Sprite Vectors.
void VectorMA(const vec3_t veca, const float scale, const vec3_t vecb, vec3_t outVector)
Sets vector_out (vc) to vevtor1 (va) + scale * vector2 (vb)
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
void R_BlendFunc(GLenum src, GLenum dest)
void CrossProduct(const vec3_t v1, const vec3_t v2, vec3_t cross)
binary operation on vectors in a three-dimensional space
local graphics definitions
static void R_SetBlendMode(int mode)
void VectorNormalizeFast(vec3_t v)
fast vector normalize routine that does not check to make sure that length != 0, nor does it return l...
ptl_t r_particleArray[MAX_PTLS]
#define VectorScale(in, scale, out)
void R_Color(const vec4_t rgba)
Change the color to given value.
void Com_Error(int code, const char *fmt,...)
void AngleVectors(const vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
Create the rotation matrix in order to rotate something.
static void R_SpriteTexcoords(const ptl_t *p, float out[8])
Fills float array with texture coordinates.
void R_DrawCircle(float radius, const vec4_t color, float thickness, const vec3_t shift)
void R_BindDefaultArray(GLenum target)
Binds the appropriate shared vertex array to the specified target.
static void R_DrawPtlLine(const ptl_t *p)
Particle system header file.
static void R_DrawParticleModel(ptl_t *p)
static void R_DrawPtlCircle(const ptl_t *p)
Draws a circle out of lines.
void R_DrawParticles(void)
static void R_DrawSprite(const ptl_t *p)
#define R_BindTexture(tn)
void R_BindArray(GLenum target, GLenum type, const void *array)