1 /*---------------------------------------------------------------------------*
2   Project:     KPAD sample program
3   File:        graphic.h
4   Programmer:  Keizo Ohta
5 
6   Copyright 2005 Nintendo. All rights reserved.
7 
8   These coded instructions, statements, and computer programs contain
9   proprietary information of Nintendo of America Inc. and/or Nintendo
10   Company Ltd., and are protected by Federal copyright law.  They may
11   not be disclosed to third parties or copied or duplicated in any form,
12   in whole or in part, without the prior written consent of Nintendo.
13  *---------------------------------------------------------------------------*/
14 
15 
16 /*******************************************************************************
17 	Declare variables
18 *******************************************************************************/
19 extern GXColor	black_clr    ;
20 extern GXColor	smoke_clr    ;
21 extern GXColor	gray_clr     ;
22 extern GXColor	white_clr    ;
23 extern GXColor	silver_clr   ;
24 extern GXColor	red_clr      ;
25 extern GXColor	green_clr    ;
26 extern GXColor	blue_clr     ;
27 extern GXColor	yellow_clr   ;
28 extern GXColor	cyan_clr     ;
29 extern GXColor	magenta_clr  ;
30 extern GXColor	orange_clr   ;
31 extern GXColor	violet_clr   ;
32 extern GXColor	peagreen_clr ;
33 
34 /*******************************************************************************
35 	Function Declarations
36 *******************************************************************************/
37 extern void	init_draw_graphic( u16 fb_width, u16 fb_height ) ;
38 extern void	draw_point( f32 px, f32 py, GXColor clr, f32 size ) ;
39 extern void	draw_line( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ) ;
40 extern void draw_dashed_line( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width );
41 extern void	draw_arrow( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ) ;
42 extern void draw_dashed_arrow( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width );
43 extern void	draw_circle( f32 ox, f32 oy, f32 radius, GXColor clr, f32 width ) ;
44 
45