1 /*---------------------------------------------------------------------------* 2 Project: Dolphin DEMO library 3 File: DEMOPuts.h 4 5 Copyright 1998-2001 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Log: DEMOPuts.h,v $ 14 Revision 1.1.1.1 2005/05/12 02:41:06 yasuh-to 15 Ported from dolphin source tree. 16 17 18 2 2001/07/12 17:59 Shiki 19 Added DEMOGetROMFontSize() and DEMOGetRFTextHeight(). 20 21 1 2001/05/09 9:37p Hirose 22 separated from demo.h 23 24 $NoKeywords: $ 25 *---------------------------------------------------------------------------*/ 26 27 #ifndef __DEMOPUTS_H__ 28 #define __DEMOPUTS_H__ 29 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 /*---------------------------------------------------------------------------* 36 DEMOPuts.c 37 *---------------------------------------------------------------------------*/ 38 // filtering type for DEMOLoadFont texture 39 typedef enum 40 { 41 DMTF_POINTSAMPLE, // Point sampling 42 DMTF_BILERP // Bilerp filtering 43 } DMTexFlt; 44 45 // caption font type 46 #define DM_FT_OPQ 0 47 #define DM_FT_RVS 1 48 #define DM_FT_XLU 2 49 50 // DEMOFont functions 51 extern void DEMOSetFontType ( s32 ); 52 extern void DEMOSetupScrnSpc( s32, s32, f32 ); 53 extern void DEMOInitCaption ( s32, s32, s32 ); 54 extern void DEMOLoadFont ( GXTexMapID, GXTexMtx, DMTexFlt ); 55 56 extern void DEMOPuts ( s16, s16, s16, char* ); 57 extern void DEMOPrintf ( s16, s16, s16, char*, ... ); 58 59 // ROM font functions 60 extern OSFontHeader* DEMOInitROMFont ( void ); 61 extern void DEMOSetROMFontSize ( s16 size, s16 space ); 62 extern void DEMOGetROMFontSize ( s16* size, s16* space ); 63 extern int DEMOGetRFTextWidth ( char* string ); 64 extern int DEMOGetRFTextHeight ( char* string ); 65 66 extern int DEMORFPuts ( s16 x, s16 y, s16 z, char* string ); 67 extern int DEMORFPutsEx ( s16 x, s16 y, s16 z, char* string, s16 maxWidth, int length); 68 extern int DEMORFPrintf ( s16 x, s16 y, s16 z, char* fmt, ... ); 69 70 extern char* DEMODumpROMFont ( char* string ); 71 72 /*---------------------------------------------------------------------------* 73 DEMOFont.c 74 *---------------------------------------------------------------------------*/ 75 extern u32 DEMOFontBitmap[]; 76 77 78 /*---------------------------------------------------------------------------*/ 79 80 #ifdef __cplusplus 81 } 82 #endif 83 84 #endif // __DEMOPUTS_H__ 85 86 /*===========================================================================*/ 87