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.h File Reference

#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.

SoImageSoMeshGetTexture (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.

SoVector3SoMeshGetVertex (SoMesh *a_This, u32 a_Index)
 Returns a single vertex of the mesh.

SoPolygonSoMeshGetPolygon (SoMesh *a_This, u32 a_Index)
 Returns a single vertex of the mesh.

SoTransformSoMeshGetTransform (SoMesh *a_This)
 Returns the transform of the mesh.

void SoMeshMakeDefaultCube (SoMesh *a_This)
 Makes the mesh equal to a default cube.


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


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