Source/ThunderBeast/QuakeToonProto1/ref_gl/gl_rsurf.c
void DrawGLFlowingPoly (msurface_t *fa)
{
	int		i;
	float	*v;
	glpoly_t *p;
	float	scroll;

	p = fa->polys;

	scroll = -64 * ( (r_newrefdef.time / 40.0) - (int)(r_newrefdef.time / 40.0) );
	if(scroll == 0.0)
		scroll = -64.0;

	qglBegin (GL_POLYGON);
	v = p->verts[0];
	for (i=0 ; i<p->numverts ; i++, v+= VERTEXSIZE)
	{
		qglTexCoord2f ((v[3] + scroll), v[4]);
		qglVertex3fv (v);
	}
	qglEnd ();
}
//============
//PGM
/*
================
DrawGLFlowingPoly -- version of DrawGLPoly that handles scrolling texture
================
*/
PGM
DrawGLFlowingPoly -- version of DrawGLPoly that handles scrolling texture
PGM DrawGLFlowingPoly -- version of DrawGLPoly that handles scrolling texture
void DrawGLFlowingPoly (msurface_t *fa)
{
	int		i;
	float	*v;
	glpoly_t *p;
	float	scroll;
	p = fa->polys;
	scroll = -64 * ( (r_newrefdef.time / 40.0) - (int)(r_newrefdef.time / 40.0) );
	if(scroll == 0.0)
		scroll = -64.0;
	qglBegin (GL_POLYGON);
	v = p->verts[0];
	for (i=0 ; i<p->numverts ; i++, v+= VERTEXSIZE)
	{
		qglTexCoord2f ((v[3] + scroll), v[4]);
		qglVertex3fv (v);
	}
	qglEnd ();
}
void DrawGLFlowingPoly ( msurface_t * fa ) { int i ; float * v ; glpoly_t * p ; float scroll ; p = fa -> polys ; scroll = -64 * ( ( r_newrefdef . time / 40.0 ) - ( int ) ( r_newrefdef . time / 40.0 ) ) ; if ( scroll == 0.0 ) scroll = -64.0 ; qglBegin ( GL_POLYGON ) ; v = p -> verts [ 0 ] ; for ( i = 0 ; i < p -> numverts ; i ++ , v += VERTEXSIZE ) { qglTexCoord2f ( ( v [ 3 ] + scroll ) , v [ 4 ] ) ; qglVertex3fv ( v ) ; } qglEnd ( ) ; }
PGM
DrawGLFlowingPoly -- version of DrawGLPoly that handles scrolling texture
PGM DrawGLFlowingPoly -- version of DrawGLPoly that handles scrolling texture