/*FILE HEADER**************************************************************
 *
 *  File name		: $Id$
 *  RCS Revision Number	: $Revision: 1.1 $
 *  Last Modified	: $Date: 94/10/28 09:23:35 $
 *  CSCI name		: Real-Time Graphics System - Applications Interface
 *  CSC name		: All functions
 *  Notes:
 *      This file contains code used to debug and test the SVME-770 RTGS.
 *      This code is provided as an example of how to call the RTGS functions
 *      from a host application.
 *  History		:
 *      Created 94/01/17 by Jeff Sanderson
 *
 *END FILE HEADER*********************************************************/

#include "dy4std.h"
#include "es.h"
#include "css.h"

#include "rtgs_ai.h"
#include "video.h"
#include "colours.h"

#include "test.h"


void test_textsym( void );
/*-----------------------------------------------------------------------*/

void test_textsym( void )
{
    int  len, i, x, y;
    char *str;
    char *s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ12345";

    init( "Text symbols test" );

    len = strlen( s ) + 4;
    str = (char *)Gcc_malloc( len, 0);
    malloc_check( str );
    Copy_string_to_gcc( s, str, len );

    Printf("Calling define_text_symbol\n");
    Define_text_symbol( 0, str );
    Key_wait();

    x = 10; 
    y = 10;
    for( i = 0 ; i < 16 ; i++ )
    {
        Set_foreground_colour( i );
        Set_background_colour( i + 1 );
        Set_transparency_mode( i % 2 );
	Draw_text_symbol( x, y, 0 );
        x += 12;
        y += 14;
    }
    Key_wait();
}

/*-----------------------------------------------------------------------*/
