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  

SoMode4Renderer.h File Reference

#include "SoSystem.h"
#include "SoMode4PolygonRasterizer.h"
#include "SoFont.h"

Go to the source code of this file.

Functions

void SoMode4RendererEnable (void)
 Switches the Gameboy Advance to mode 4.

void SoMode4RendererFlip (void)
 Flips the two mode 4 buffers.

void SoMode4RendererClearFrontAndBackBuffer (void)
 This function clears both the front and the back buffer.

void * SoMode4RendererGetBuffer (void)
 Returns a pointer to the current backbuffer;.

void SoMode4RendererDrawImage (const SoImage *a_Image)
 Draws the given image in the current backbuffer.

void SoMode4RendererDrawTransparentImage (const SoImage *a_Image)
 Draws a transparent image into the current backbuffer.

void SoMode4RendererDrawCrossFadeImage (const SoImage *a_Image0, const SoImage *a_Image1, u32 a_Fade)
 Draws a crossfaded version of two images into the backbuffer.

void SoMode4RendererDrawPixel (u32 a_X, u32 a_Y, u32 a_PalIndex)
 Plots a single pixel into the backbuffer.

void SoMode4RendererDrawNumber (u32 a_LeftX, u32 a_RightX, u32 a_TopY, s32 a_Number, const SoImage *a_Font)
 Draws a number with the given font in the current backbuffer;.

void SoMode4RendererDrawString (u32 a_LeftX, u32 a_RightX, u32 a_TopY, char *a_String, const SoImage *a_Font)
 Draws a string with the given font into the current backbuffer.

void SoMode4RendererClear (void)
 Clears the current mode4 backbuffer to palette index zero.


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:
June 24 2001
See the SoMode4Renderer module for more information.


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