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

#include "SoTables.h"
#include "SoMath.h"
#include "SoDisplay.h"

Variables

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.

const sofixedpoint g_SineAndCosineTable [256+64]
 Sine and cosine table.

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.


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

Variable Documentation

const sofixedpoint g_SineAndCosineTable[ 256 + 64 ]
 

Sine and cosine table.

For internal use only.

Sine and cosine are in one table where the cosine is just a shifted version of the sine.


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