graph.h 1.52 KB
/*====================================================================
  File  : graph.h

  Created   by Koji Mitsunari.    Mar,14 1996.
  Copyright by Nintendo, Co., Ltd.       1997.
  =====================================================================*/
#ifndef	_graph_h_
#define	_graph_h_

#define	BMP_DATA	0

#define WHITE		0xffff
#define BLACK		0x0000
#define GRAY		GPACK_RGBA5551(127,127,127,1)
#define BLUE		GPACK_RGBA5551(0,0,255,1)
#define GREEN		GPACK_RGBA5551(0,255,0,1)
#define RED		GPACK_RGBA5551(255,0,0,1)
#define YELLOW		GPACK_RGBA5551(255,255,0,1)
#define DARK		GPACK_RGBA5551(50,50,128,1)
#define MARKCOLOR	GPACK_RGBA5551(50,250,50,1)
#define BGCOLOR		0x0000

#define CHAR_WD		8
#define CHAR_HT		16

#define TEXT_WD		SCREEN_WD/CHAR_WD
#define TEXT_HT		SCREEN_HT/CHAR_HT

extern	void	putchar(u16, int, int, char);
extern	void	revchar(u16, int, int, char);
extern	void	putint_h(u16, int, int, int, char);
extern	void	putint_d(u16, int, int, int);
extern	void	printstr(u16, int, int, char*);
extern	void	circle(int, int, int, u16);
extern	void	pset(int, int, u16);
extern	void	line(int, int, int, int, u16);
extern	void	box(int, int, int, int, u16);
extern	void	gcls(void);
extern	void	bigputc(u16, int, int, char, int, int);
extern	void	printbig(u16, int, int, char*, int, int);
extern	void	WriteBG(u8 *, u16 *);
extern	void	SetBG(u8 *, u16 *);
extern	void	gputchar(u16, int, int, char, u16 *);
extern	void	gprintstr(u16, int, int, char*, u16 *);
extern	void	putpattern(u16, int, int, char);

extern	u16	*__cursor;
extern	u16	__color;

#endif