include/nds/arm9/PA_Mode7.h File Reference

#include "PA_BgRot.h"

Data Structures

struct  VECTOR
struct  tagM7CAM
struct  BGAFF_EX

Defines

#define M7_D_SH   7
#define M7O_NORM   1
#define M7_NEAR   16
#define M7_FAR   384
#define M7_LEFT   -120
#define M7_RIGHT   120
#define M7_TOP   80
#define M7_BOTTOM   -80
#define M7_FAR_BG   512
#define X0   256<<8
#define Y0   32<<8
#define Z0   256<<8

Typedefs

typedef struct tagM7CAM M7CAM

Functions

void hbl_mode7 (void)
void PA_InitMode7 (u8 bg_select)
 Initialize Mode 7 for a given background. You MUST be in video mode 1 or 2.
void PA_DeInitMode7 (void)
 DeInitialize Mode 7.
void PA_Mode7Angle (s16 angle)
 Define the current angle.
void PA_Mode7MoveLeftRight (s16 x_deplac)
 Move lateraly, so left or right...
void PA_Mode7MoveForwardBack (s16 z_deplac)
 Move forward or backwards.
void PA_Mode7X (s16 mode7x)
 Move to a given point on the map.
void PA_Mode7Z (s16 mode7z)
 Move to a given point on the map.
void PA_Mode7SetPointXZ (s16 mode7x, s16 mode7z)
 Move to a given point on the map (of coordinates x, z).
void PA_Mode7Height (s16 mode7y)
 Set the camera height.
void m7_aff_calc (void)
void m7_hbl_flr (void)
void m7_horz_calc (void)

Variables

const s32 DIV [160]
M7CAM _m7_cam
int _m7_horizon
BGAFF_EX _m7_bgaff_ex [192]
u8 PA_currentmode
s32 mode7cam_x
s32 mode7cam_y
s32 mode7cam_z
s32 mode7alpha
s32 mode7cos
s32 mode7sin
s16 mode7_distance

Define Documentation

#define M7_BOTTOM   -80

#define M7_D_SH   7

#define M7_FAR   384

#define M7_FAR_BG   512

#define M7_LEFT   -120

#define M7_NEAR   16

#define M7_RIGHT   120

#define M7_TOP   80

#define M7O_NORM   1

#define X0   256<<8

#define Y0   32<<8

#define Z0   256<<8


Typedef Documentation

typedef struct tagM7CAM M7CAM


Function Documentation

void hbl_mode7 ( void   ) 

void m7_aff_calc ( void   ) 

void m7_hbl_flr ( void   ) 

void m7_horz_calc ( void   ) 


Variable Documentation

const s32 DIV[160]

s32 mode7cos

s32 mode7sin


Generated on Sat Jun 13 12:55:13 2009 for PAlib - Programmer's Arsenal by  doxygen 1.5.8