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  

SoMeshCube.c File Reference

#include "SoMesh.h"
#include "SoMath.h"
#include "SoDebug.h"

Default Cube Mesh

#define SO_CUBE_HALF_SIZE
 Size of the default cube divided by two.

#define SO_CUBE_TEX_COORD_SIZE
 Size of the default cubes texture coordinates.

SoVector3 s_CubeVertices [8]
 Vertices of the default cube.

SoVector2 s_CubeTxCoords [8]
 Texture coordinates of each vertex.

u16 s_CubeTriangleIndex00 [3]
 Vertex-index array for triangle 0 of the default cube;.

u16 s_CubeTriangleIndex01 [3]
 Vertex-index array for triangle 1 of the default cube;.

u16 s_CubeTriangleIndex02 [3]
 Vertex-index array for triangle 2 of the default cube;.

u16 s_CubeTriangleIndex03 [3]
 Vertex-index array for triangle 3 of the default cube;.

u16 s_CubeTriangleIndex04 [3]
 Vertex-index array for triangle 4 of the default cube;.

u16 s_CubeTriangleIndex05 [3]
 Vertex-index array for triangle 5 of the default cube;.

u16 s_CubeTriangleIndex06 [3]
 Vertex-index array for triangle 6 of the default cube;.

u16 s_CubeTriangleIndex07 [3]
 Vertex-index array for triangle 7 of the default cube;.

u16 s_CubeTriangleIndex08 [3]
 Vertex-index array for triangle 8 of the default cube;.

u16 s_CubeTriangleIndex09 [3]
 Vertex-index array for triangle 9 of the default cube;.

u16 s_CubeTriangleIndex10 [3]
 Vertex-index array for triangle 10 of the default cube;.

u16 s_CubeTriangleIndex11 [3]
 Vertex-index array for triangle 11 of the default cube;.

SoPolygon s_CubeTriangles [12]
 Each triangle of the cube.


Functions

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.