/*FILE HEADER**************************************************************
 *
 *  File name		: $Id$
 *  RCS Revision Number	: $Revision: 1.1 $
 *  Last Modified	: $Date: 94/10/28 09:23:32 $
 *  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_lines( void );
/*-----------------------------------------------------------------------*/

void test_lines( void )
{
    init( "Lines test" );

    Clear_screen( OVERLAY, 0, 0 );
    Set_foreground_colour( WHITE );
    Printf("Calling draw_line\n");
    Draw_line( 0, 0, RES_X, RES_Y );
    Key_wait();

    Printf("Calling draw_line, line style 0x0F0F0F0F \n");
    Set_line_style( 0x0F0F0F0F );
    Draw_line( 0, RES_Y, RES_X, 0 );
    Key_wait();
    Set_line_style( 0xFFFFFFFF );

    Printf("Calling draw_line, line width 10 \n");
    Set_line_width( 10 );
    Draw_line( ( RES_X / 2 ), 0, ( RES_X / 2 ), RES_Y );
    Key_wait();
    Set_line_width( 1 );

    Printf("Calling draw_line, keying mode on \n");
    Set_keying_mode( ON );
    Draw_line( 0, ( RES_Y / 2 ), RES_X, ( RES_Y / 2 ) );
    Key_wait();
    Set_keying_mode( OFF );
}

/*-----------------------------------------------------------------------*/
