tBbNc[GrWinɂ鐯`̕`

/*
---------------------------------------------------
 RpC̃IvV́Â悤ɂĂB
 bcc32 -w-8060 -WC GrWin.lib star.c
---------------------------------------------------

 OtBbNc[GrWinɂẮAgpĂ܂B
  ufv^fvb@Version 1.0.0@iŁjv
    Copyright (C) 1998 - 2011 Tamaribuchi, Tsuguhiro 
    Éww
*/

#include <GrWin.h>
main()
{
	int width = 640, height = 480;
	GWopen(0);
	GWsize( -5, &width, &height);
	GWsize(-3, NULL, NULL);
	GWvport(0.0, 0.0, (float)width / (float)height, 1.0);
	
	GWindow(0.0, (float)height - 1.0 , (float)width - 1.0, 1.0);
	
	GWclear(GWC_WHITE);
	
	GWsetpen( GWC_RED , GWL_SOLID, 10, GWX_COPYPEN);
	
	GWline( 320,  50, 160, 350);	// W(320,50)W(160,350)ɁA
	GWline( 160, 350, 540, 130);	// iȉlj
	GWline( 540, 130, 100, 130);
	GWline( 100, 130, 480, 350);
	GWline( 480, 350, 320,  50);
	
	GWquit();
	return 0;
}


