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  

SoMatrix.c File Reference

#include "SoMatrix.h"
#include "SoTables.h"
#include "SoMode4Renderer.h"
#include "SoMath.h"

Functions

void SoMatrixMakeIdentity (SoMatrix *a_This)
 Makes the given matrix an identity matrix.

void SoMatrixMakeRotationX (SoMatrix *a_This, s32 a_Angle)
 Makes the given matrix an rotational matrix around the X-axis.

void SoMatrixMakeRotationY (SoMatrix *a_This, s32 a_Angle)
 Makes the given matrix an rotational matrix around the Y-axis.

void SoMatrixMakeRotationZ (SoMatrix *a_This, s32 a_Angle)
 Makes the given matrix an rotational matrix around the Z-axis.

void SoMatrixSetTranslation (SoMatrix *a_This, sofixedpoint a_X, sofixedpoint a_Y, sofixedpoint a_Z)
 Sets the translational part of the matrix.

void SoMatrixScale (SoMatrix *a_This, sofixedpoint a_ScaleX, sofixedpoint a_ScaleY, sofixedpoint a_ScaleZ)
 Non-uniformly scales the matrix.

void SoMatrixMultiplyBy (SoMatrix *a_This, SoMatrix *a_Matrix)
 Multiplies the matrix by another matrix.

void SoMatrixMultiply (SoMatrix *a_This, SoMatrix *a_A, SoMatrix *a_B)
 Multiplies two matrices, placing the result into this.

void SoMatrixMode4DebugDraw (SoMatrix *a_This)
 Prints the matrix elements on the screen for debugging purposes. Only works in mode 4.


Detailed Description

Copyright (C) 2002 by the SGADE authors For conditions of distribution and use, see copyright notice in SoLicense.txt

Author:
Jaap Suter, Gabriele Scibilia
Date:
Jun 26 2001
See the SoMatrix module for more information.


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