engine/video_draw.c
/*	This repeats a 64*64 tile graphic to fill the screen around a sized down
	refresh window.
*/
This repeats a 64*64 tile graphic to fill the screen around a sized down
refresh window.
This repeats a 64 * 64 tile graphic to fill the screen around a sized down refresh window .
void Draw_TileClear (int x, int y, int w, int h)
{
	glpic_t	*gl;
	gl = (glpic_t *)draw_backtile->data;
	glColor3f(1,1,1);
	Video_SetTexture(gl->gltexture);
	glBegin(GL_QUADS);
	glTexCoord2f(x/64.0,y/64.0);
	glVertex2f(x,y);
	glTexCoord2f((x+w)/64.0,y/64.0);
	glVertex2f(x+w,y);
	glTexCoord2f((x+w)/64.0,(y+h)/64.0);
	glVertex2f(x+w,y+h);
	glTexCoord2f(x/64.0,(y+h)/64.0);
	glVertex2f(x,y+h);
	glEnd();
}
void Draw_TileClear ( int x , int y , int w , int h ) { glpic_t * gl ; gl = ( glpic_t * ) draw_backtile -> data ; glColor3f ( 1 , 1 , 1 ) ; Video_SetTexture ( gl -> gltexture ) ; glBegin ( GL_QUADS ) ; glTexCoord2f ( x / 64.0 , y / 64.0 ) ; glVertex2f ( x , y ) ; glTexCoord2f ( ( x + w ) / 64.0 , y / 64.0 ) ; glVertex2f ( x + w , y ) ; glTexCoord2f ( ( x + w ) / 64.0 , ( y + h ) / 64.0 ) ; glVertex2f ( x + w , y + h ) ; glTexCoord2f ( x / 64.0 , ( y + h ) / 64.0 ) ; glVertex2f ( x , y + h ) ; glEnd ( ) ; }
This repeats a 64*64 tile graphic to fill the screen around a sized down
refresh window.
This repeats a 64 * 64 tile graphic to fill the screen around a sized down refresh window .