/******************************************************************************

		WAVE RACE 64

		File		: enssedit.c
		Description	: endo's rsp static segment for course editor etc.
		Date		: 1996
		Author		: T.Endo

******************************************************************************/

#include <ultra64.h>

#include "../endefine.h"

/******************************************************************************
	textures
******************************************************************************/

#include "edit/texinc.h"
#include "font/tx_sample2.h"
#include "font/tx_dakuten.h"
#include "font/tx_chouon.h"

/******************************************************************************
	crsbuoy
******************************************************************************/
#define SIZE	64
static Vtx vtx_edcrsbuoy[] = {
	{ -SIZE, -SIZE, 0,	0,	 -0.5 * 64, 15.5 * 64,	255, 255, 255, 255 },
	{  SIZE, -SIZE, 0,	0,	 15.5 * 64, 15.5 * 64,	255, 255, 255, 255 },
	{  SIZE,  SIZE, 0,	0,	 15.5 * 64, -0.5 * 64,	255, 255, 255, 255 },
	{ -SIZE,  SIZE, 0,	0,	 -0.5 * 64, -0.5 * 64,	255, 255, 255, 255 },
};

Gfx gfx_edcrsbuoy[] = {
	gsSPVertex(vtx_edcrsbuoy, 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),

	gsSPEndDisplayList()
};
#undef SIZE

/******************************************************************************
	judge line
******************************************************************************/
#define SIZE	256
static Vtx vtx_edjudge_line[] = {
	{ -SIZE, -SIZE, 0,	0,	 -0.5 * 64, 15.5 * 64,	255, 255, 255, 255 },
	{  SIZE, -SIZE, 0,	0,	 15.5 * 64, 15.5 * 64,	255, 255, 255, 255 },
	{  SIZE,  SIZE, 0,	0,	 15.5 * 64, -0.5 * 64,	255, 255, 255, 255 },
	{ -SIZE,  SIZE, 0,	0,	 -0.5 * 64, -0.5 * 64,	255, 255, 255, 255 },
};

Gfx gfx_edjudge_line[] = {
	gsSPVertex(vtx_edjudge_line, 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),

	gsSPEndDisplayList()
};
#undef SIZE

/******************************************************************************
	init print japan
******************************************************************************/
Gfx gfx_init_print_japan[] = {
	
	gsSPClearGeometryMode(G_GEOM_ALL),
	gsSPSetGeometryMode(G_SHADE),
	gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
	gsDPPipeSync(),
	gsDPSetCycleType(G_CYC_1CYCLE),
	gsDPSetTexturePersp(G_TP_NONE),
	gsDPSetTextureFilter(G_TF_BILERP),
	gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
	gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2),

	gsSPEndDisplayList()
};

/******************************************************************************
-------------------------------------------------------------------------------
				end of file
-------------------------------------------------------------------------------
******************************************************************************/
