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.
#include "SoImage.h"#include "SoPolygon.h"#include "SoTransform.h"Go to the source code of this file.
Data Structures | |
| struct | SoMesh |
| Mesh definition. More... | |
Defines | |
| #define | SO_MESH_MAX_NUM_VERTICES |
| Defines the maximum number of vertices a mesh can contain. | |
Functions | |
| void | SoMeshSetTexture (SoMesh *a_This, SoImage *a_Texture) |
| Sets the texture of the mesh. | |
| SoImage * | SoMeshGetTexture (SoMesh *a_This) |
| Returns the texture this mesh is using. | |
| u32 | SoMeshGetNumVertices (SoMesh *a_This) |
| Returns the number of vertices in the mesh. | |
| u32 | SoMeshGetNumPolygons (SoMesh *a_This) |
| Returs the number of polygons in the mesh. | |
| SoVector3 * | SoMeshGetVertex (SoMesh *a_This, u32 a_Index) |
| Returns a single vertex of the mesh. | |
| SoPolygon * | SoMeshGetPolygon (SoMesh *a_This, u32 a_Index) |
| Returns a single vertex of the mesh. | |
| SoTransform * | SoMeshGetTransform (SoMesh *a_This) |
| Returns the transform of the mesh. | |
| void | SoMeshMakeDefaultCube (SoMesh *a_This) |
| Makes the mesh equal to a default cube. | |