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.
Files | |
| file | SoMode4PolygonRasterizer.c |
| file | SoMode4PolygonRasterizer.h |
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 | |
| u16 * | g_SoMode4PolygonRasterizerBuffer |
| Pointer the polygon routines will render to. | |
Singleton
Module containing all routines to draw textured and solid and special case polygons and triangles. If you want kick ass double buffered full resolution 3D graphics on your Gameboy Advance, use this module.
|
||||||||||||||||
|
Draws a solid single color polygon.
|
|
||||||||||||
|
Draws a solid filled 2D triangle.
|
|
||||||||||||
|
C version of the assembly solid triangle rasterizer;.
I actually implemented this one first, and then converted it to assembly; |
|
||||||||||||||||
|
Draws a textured polygon.
|
|
|
Initializes the rasterizer.
Make this the first function you call before any other SoMode4Rasterizer functions. Returns immediately if this method has been called before. Make sure you have already called SoMode4RendererEnable too. |
|
|
Sets the backbuffer the rasterizer will render to.
|
|
|
Sets the texture the rasterizer should use for textured polygons.
|
|
|
Pointer the polygon routines will render to.
For internal use only.
|