The SGADE Documentation

the SGADE The Socrates Gameboy Advance Development Engine

The SGADE is a development library for the Nintendo Gameboy Advance. It's free for all uses and is distributed without guarantees. For more information visit the SGADE page.


Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

SoTables.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00011 // ----------------------------------------------------------------------------
00012 
00013 #ifndef SO_TABLES_H
00014 #define SO_TABLES_H
00015 
00016 #ifdef __cplusplus
00017     extern "C" {
00018 #endif
00019 
00020 
00021 // ---------------------------------------------------------------------------- //! @{
00033 // ----------------------------------------------------------------------------
00034 
00035 
00036 // ----------------------------------------------------------------------------
00037 // Includes
00038 // ----------------------------------------------------------------------------
00039 #include "SoSystem.h"
00040 
00041 // ----------------------------------------------------------------------------
00042 // Defines
00043 // ----------------------------------------------------------------------------
00044 
00056 #define SO_ONE_OVER_N_MAX_N   256
00057 
00059 #define SO_ONE_OVER_N_INDEX_Q 4
00060 
00071 #define SO_FADE_BITS  (4)
00072 
00074 #define SO_FADE_STEPS (1<<SO_FADE_BITS)
00075 
00077 #define SO_FADE_MAX   (SO_FADE_STEPS-1) 
00078 
00079 
00080 // ----------------------------------------------------------------------------
00081 // Globals, see the .c files for the documentation.
00082 // ----------------------------------------------------------------------------
00083 
00084 extern const sofixedpoint*  g_Sine;
00085 extern const sofixedpoint*  g_Cosine;
00086 extern const sofixedpoint   g_OneOver[ SO_ONE_OVER_N_MAX_N << SO_ONE_OVER_N_INDEX_Q ];
00087 extern const u8             g_Fade[ SO_FADE_STEPS * 256 ];
00088 
00089 // ----------------------------------------------------------------------------
00090 // EOF
00091 // ----------------------------------------------------------------------------
00092 
00094 
00095 #ifdef __cplusplus
00096 } // extern "C"
00097 #endif
00098 
00099 #endif

Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.