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 File Reference

#include "SoSystem.h"

Go to the source code of this file.

Defines

#define SO_ONE_OVER_N_MAX_N
 Range of the one-over-N table.

#define SO_ONE_OVER_N_INDEX_Q
 Number of bits for fraction of entries in the one-over-N table. (see g_OneOver).

#define SO_FADE_BITS
 Number of bits allowed for fading-precision.

#define SO_FADE_STEPS
 Number of fade steps allowed (see g_Fade).

#define SO_FADE_MAX
 Maximum fade value (see g_Fade).


Variables

const sofixedpointg_Sine
 For internal use only. Use the SO_SINE() macro istead.

const sofixedpointg_Cosine
 For internal use only. Use the SO_COSINE() macro instead.

const sofixedpoint g_OneOver [SO_ONE_OVER_N_MAX_N<< SO_ONE_OVER_N_INDEX_Q]
 Reciprocal table for fast 1/N calculations.

const u8 g_Fade [SO_FADE_STEPS *256]
 Table for fast (cross)fading.


Detailed Description

Copyright (C) 2002 by the SGADE authors For conditions of distribution and use, see copyright notice in SoLicense.txt

Author:
Jaap Suter
Date:
Jun 25 2001

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