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  

SoPalette.c File Reference

#include "SoPalette.h"
#include "SoTables.h"
#include "SoDisplay.h"
#include "SoSystem.h"
#include "SoMath.h"
#include "SoDMA.h"
#include "SoDebug.h"

Functions

void SoPaletteSetColor (u16 *a_This, u32 a_PalIndex, u32 a_16BitColor)
 Sets an individual color into the given palette.

void SoPaletteSetBlack (u16 *a_This, bool a_256ColorPalette)
 Makes the entire palette fully black (every color equals zero).

void SoPaletteSetGreyScale (u16 *a_This, bool a_256ColorPalette)
 Greyscales the palette.

void SoPaletteSetPalette (u16 *a_This, const u16 *a_Palette, bool a_256ColorPalette)
 Copies an entire palette into another one.

void SoPaletteFadeGreyScale (u16 *a_This, u32 a_Fade, bool a_256ColorPalette)
 Makes the pallette a faded greyscale palette;.

void SoPaletteFadePalette (u16 *a_This, const u16 *a_Palette, u32 a_Fade, bool a_256ColorPalette)
 Makes the pallette a faded version of another palette.

void SoPaletteAddToPalette (u16 *a_This, u32 a_Red, u32 a_Green, u32 a_Blue, bool a_256ColorPalette)
 Saturated addition to each color of the given palette.

void SoPaletteSubtractFromPalette (u16 *a_This, u32 a_Red, u32 a_Green, u32 a_Blue, bool a_256ColorPalette)
 Saturated subtraction from each color of the given palette.

void SoPaletteSetRandom (u16 *a_This, bool a_256ColorPalette)
 Just throws random colors in the palette;.


Detailed Description

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

Author:
Jaap Suter, Gabriele Scibilia
Date:
August 9 2001
See the SoPalette module for more information.


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