1 /*---------------------------------------------------------------------------*
2   Project:     KPAD sample program
3   File:        kfont.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 	Definitions
18 *******************************************************************************/
19 
20 
21 /*******************************************************************************
22 	Function Declarations
23 *******************************************************************************/
24 extern void	init_kfont_texture( void ) ;
25 extern void	init_draw_kfont( u16 fb_width, u16 fb_height, f32 lt_width, f32 lt_height ) ;
26 extern s32	draw_kfont_s32( f32 cx, f32 cy, GXColor clr, s32 val ) ;
27 extern s32	draw_kfont_f32( f32 cx, f32 cy, GXColor clr, f32 val, s32 keta ) ;
28 extern void	draw_kfont_bit( f32 cx, f32 cy, GXColor clr, u32 val, s32 keta ) ;
29 extern void	draw_kfont_letter( f32 cx, f32 cy, GXColor clr, char *str ) ;
30 
31 extern f32	calc_kfont_x1( f32 cx ) ;
32 extern f32	calc_kfont_y1( f32 cy ) ;
33 extern f32	calc_kfont_x2( f32 cx ) ;
34 extern f32	calc_kfont_y2( f32 cy ) ;
35