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  

SoMode4PolygonRasterizer.h File Reference

#include "SoSystem.h"
#include "SoVector.h"
#include "SoImage.h"

Go to the source code of this file.

Functions

void SoMode4PolygonRasterizerInitialize (void)
 Initializes the rasterizer.

void SoMode4PolygonRasterizerSetBuffer (void *a_Buffer)
 Sets the backbuffer the rasterizer will render to.

void SoMode4PolygonRasterizerSetTexture (SoImage *a_Texture)
 Sets the texture the rasterizer should use for textured polygons.

void SoMode4PolygonRasterizerDrawTexturedPolygon (u32 a_NumVertices, SoVector2 *a_ScreenCoordinates, SoVector2 *a_TextureCoordinates)
 Draws a textured polygon.

void SoMode4PolygonRasterizerDrawSolidPolygon (u32 a_NumVertices, SoVector2 *a_ScreenCoordinates, u32 a_PaletteIndex)
 Draws a solid single color polygon.

void SoMode4PolygonRasterizerDrawSolidTriangleC (SoVector2 a_Triangle[3], u32 a_PaletteIndex)
 C version of the assembly solid triangle rasterizer;.

void SoMode4PolygonRasterizerDrawSolidTriangle (SoVector2 a_Triangle[3], u32 a_PaletteIndex)
 Draws a solid filled 2D triangle.


Variables

u16g_SoMode4PolygonRasterizerBuffer
 Pointer the polygon routines will render to.


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 5 2001
See the SoMode4PolygonRasterizer module for more information.


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