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  

SoCamera.h File Reference

#include "SoVector.h"
#include "SoTransform.h"
#include "SoMatrix.h"
#include "SoMesh.h"
#include "SoPolygon.h"
#include "SoMath.h"
#include "SoDisplay.h"

Go to the source code of this file.

Data Structures

struct  SoCamera
 Used to render 3D stuff. More...


Functions

void SoCameraInitialize (SoCamera *a_This)
 Initializes a camera.

void SoCameraForward (SoCamera *a_This, sofixedpoint a_Amount)
 Forwards the camera by the given fixed point amount.

void SoCameraRight (SoCamera *a_This, sofixedpoint a_Amount)
 Moves the camera to the right by the given fixed point amount.

void SoCameraUp (SoCamera *a_This, sofixedpoint a_Amount)
 Moves the camera up by the given fixed point amount.

void SoCameraSetPitch (SoCamera *a_This, s32 a_Angle)
 Sets the pitch of the camera. A full circle is 256 degrees.

void SoCameraSetYaw (SoCamera *a_This, s32 a_Angle)
 Sets the yaw of the camera. A full circle is 256 degrees.

void SoCameraSetRoll (SoCamera *a_This, s32 a_Angle)
 Sets the roll of the camera. A full circle is 256 degrees.

void SoCameraSetTranslation (SoCamera *a_This, sofixedpoint a_X, sofixedpoint a_Y, sofixedpoint a_Z)
 Sets the translate of the camera.

void SoCameraDrawMesh (SoCamera *a_This, SoMesh *a_Mesh)
 Draws the given mesh into the current buffer.

void SoCameraSetFarAndNearPlaneClippingEnable (SoCamera *a_This, bool a_Enable)
 Enables or disables clipping of polygons against the far and near planes.

void SoCameraSetFrustumSidePlanesClippingEnable (SoCamera *a_This, bool a_Enable)


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


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