1 /*---------------------------------------------------------------------------*
2   Project:  NitroSDK - FX - demos - test
3   File:     fx_test_common.h
4 
5   Copyright 2003-2006 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: fx_test_common.h,v $
14   Revision 1.6  2006/01/18 02:11:21  kitase_hirotake
15   do-indent
16 
17   Revision 1.5  2005/02/28 05:26:13  yosizaki
18   do-indent.
19 
20   Revision 1.4  2004/04/07 01:27:57  yada
21   Fixed header comment
22 
23   Revision 1.3  02/05/2004 07:09:02  yasu
24   Changed SDK prefix iris to nitro
25 
26   Revision 1.2  2004/01/29 01:35:09  kitani_toshikazu
27   Fixed some bugs for debug build, restored appended test cases
28 
29   $NoKeywords: $
30 
31   *---------------------------------------------------------------------------*/
32 
33 #ifndef FX_TEST_COMMON_H_
34 #define FX_TEST_COMMON_H_
35 
36 #include <nitro.h>
37 #include <math.h>
38 
39 // Output the detail content of the test
40 // #define FX_TEST__SHOW_DETAIL
41 // Threshold at which the result is considered as an error
42 #define CRITICAL_ERROR_THRESHOLD    (double)( 1.0 / (double)( ( 1 << 3 ) ) )
43 
44 
45 
46 extern void print_mtx43(const MtxFx43 *m);
47 // Report the detail
48 extern void OutDetail(const char *fmt, ...);
49 extern void MUST_SUCCEED_ASSERT(BOOL exp, int idx);
50 extern void MUST_FAIL_ASSERT(BOOL exp, int idx);
51 
52 
53 // double Vector
54 typedef struct
55 {
56     double  x;
57     double  y;
58     double  z;
59 }
60 VecD;
61 
62 #endif // FX_TEST_COMMON_H_
63