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  

SoMesh Struct Reference
[SoMesh]

Mesh definition. More...

#include <SoMesh.h>


Data Fields

u32 m_NumVertices
 Number of vertices in the mesh.

SoPolygonm_Polygons
 Array of polygons in the mesh.

u32 m_NumPolygons
 Number of polygons in the mesh.

SoImagem_Texture
 Pointer to texture. Null if the mesh has no texture.

SoTransform m_Transform
 Current transform of the mesh.

SoVector3m_Vertices
 Array of vertices in the mesh.


Detailed Description

Mesh definition.

Defines a mesh that can be given to a SoCamera instance for rendering. Check the attributes and the methods for more information. However, these attributes are private. Under normal circumstances you'll only need the SoMesh methods.

See the SoMesh module for more information.


Field Documentation

u32 SoMesh::m_NumPolygons
 

Number of polygons in the mesh.

For internal use only.

u32 SoMesh::m_NumVertices
 

Number of vertices in the mesh.

For internal use only.

SoPolygon* SoMesh::m_Polygons
 

Array of polygons in the mesh.

For internal use only.

SoImage* SoMesh::m_Texture
 

Pointer to texture. Null if the mesh has no texture.

For internal use only.

SoTransform SoMesh::m_Transform
 

Current transform of the mesh.

For internal use only.

SoVector3* SoMesh::m_Vertices
 

Array of vertices in the mesh.

For internal use only.

Yes, I know I'm using SoVector3 to represent vertices. If you have a problem with that, email me and we'll sort it out, :) hehe. Mathematical correctness is only so good as long as it's usefull. Use the following code if you really want it the mathematically correct way.

typedef SoVertex SoVector3; 


The documentation for this struct was generated from the following file:
Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.