atari email archive

a collection of messages sent at Atari from 1983 to 1992.

GSP text routines

(1 / 1)


/* This program shows how to put up text on the screen using the
GSP text routines.  The routines shown, and some others
to do things like draw polygons, lines, and rectangles, are in
the file 68_gsp.c in kim$userdisk:[margolin.gspex]
*/

DisplayTest()
{
	int i;
	char line[100];
	DOWN_340();	/* Load up the 340 code */
	
	while(1){	
		next_gsp_buffer();  /* Allocate a new GSP command buffer */
		
		clear_gsp_screen(BLACK);	/* Clear the scrn */

		xy_font("This is the small font",	/* string */
			100,				/* X coordinate */
			100,				/* Y coordinate */
			WHITE,				/* Color */
			0);				/* 8x8 font */


		sprintf(line,"DISPLAY CYCLE %d",i++);

		xy_font(line,				/* string */
			30,				/* X coordinate */
			200,				/* Y coordinate */
			WHITE,				/* Color */
			1);				/* 16x16 font */

		end_gsp_buffer(-1);	/* Switch buffers, start display */
	}
}
Message 1 of 1

Mar 15, 1988