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.
Files | |
| file | SoCamera.c |
| file | SoCamera.h |
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) |
This file contains the definitions of the camera class. Cameras are used to project and render 3 dimensional primitives onto the GBA screen.
|
||||||||||||
|
Draws the given mesh into the current buffer.
This function transforms the given mesh from object space to camera space, performs clipping if neccesary and requested, then transforms it to screenspace, and then draws it using the correct functions (texture, non-textured, etc.). |
|
||||||||||||
|
Forwards the camera by the given fixed point amount.
|
|
|
Initializes a camera.
Initializes the given camera. It resets its transform. It enables near- and far-plane clipping. Enables frustum side-plane clipping. Initializes some internal structures. |
|
||||||||||||
|
Moves the camera to the right by the given fixed point amount.
|
|
||||||||||||
|
Enables or disables clipping of polygons against the far and near planes.
|
|
||||||||||||
|
\ Enables or disables clipping of polygons against the frustum side planes.
|
|
||||||||||||
|
Sets the pitch of the camera. A full circle is 256 degrees.
|
|
||||||||||||
|
Sets the roll of the camera. A full circle is 256 degrees.
|
|
||||||||||||||||||||
|
Sets the translate of the camera.
|
|
||||||||||||
|
Sets the yaw of the camera. A full circle is 256 degrees.
|
|
||||||||||||
|
Moves the camera up by the given fixed point amount.
|