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 | SoPolygon.c |
| file | SoPolygon.h |
Data Structures | |
| struct | SoPolygon |
| Polygon structure definition. More... | |
Defines | |
| #define | SO_POLYGON_MAX_NUM_VERTICES |
| Maximum number of vertices in a polygon. | |
Functions | |
| SoVector2 * | SoPolygonGetTextureCoordinates (SoPolygon *a_This) |
| To get the array of texture coordinates of the polygon. | |
| u32 | SoPolygonGetVertexIndex (SoPolygon *a_This, u32 a_Index) |
| To get a single vertex from the polygon. | |
| u32 | SoPolygonGetNumVertices (SoPolygon *a_This) |
| To get the number of vertices in the polygon. | |
| u32 | SoPolygonGetPaletteIndex (SoPolygon *a_This) |
| To get the color of the polygon. | |
| void | SoPolygonSetPaletteIndex (SoPolygon *a_This, u32 a_PaletteIndex) |
| To set the color of the polygon. | |
This module contains a structure and methods for dealing with polygons. The SoMesh structure contains a list of these polygons.
|
|
Maximum number of vertices in a polygon.
This is used by the SoCamera module in the clipping routine. We use a fixed size array to hold clipped vertices, and make sure we never exceed this maximum number. Which shouldn't be much of a problem, since you should be using triangles anyway. |
|
|
To get the number of vertices in the polygon.
|
|
|
To get the color of the polygon.
|
|
|
To get the array of texture coordinates of the polygon.
|
|
||||||||||||
|
To get a single vertex from the polygon.
|
|
||||||||||||
|
To set the color of the polygon.
|