Aller au code source de ce fichier.
Structures de données | |
struct | PA_3DObject |
Macros | |
#define | texPCX 1 |
#define | texBIN 2 |
Fonctions | |
void | PA_Init3D (void) |
Initialise la 3d sur l'écran du bas. Les sprites peuvent aussi être utilisés, mais pas les fonds... Un grand merci à Delfare pour toutes les fonctions 3d ! | |
void | PA_Init3DAndBg (void) |
void | PA_LoadSplash3D (void) |
Affiche un splash screen PlayerAdvance... C'est toujours sympa de remercier ;) | |
void | PA_Init3DDrawing (float x1, float y1, float z1, float x2, float y2, float z2) |
gere la perspective, (x1,y1,z1) est la position de la camera, (x2,y2,z2) est la position regardee par la camera,... | |
void | PA_glulookat (float eyex, float eyey, float eyez, float lookAtx, float lookAty, float lookAtz, float upx, float upy, float upz) |
gere la position de la camera : (eyex,eyey,eyez) est la position de la camera, (lookAtx,lookAty,lookAtz) est la position regardee par la camera, (upx,upy,upz) est la position du haut | |
void | PA_image8to16 (sImage *img) |
void | PA_VueKeys (void) |
gere la vue grace aux fleches, (viseeX,viseeY,viseeZ) est la position a regarder, il vous faut faire un PA_glulookat avec ces valeurs pour positionner la vue | |
void | PA_LoadTexture (int numtexture, u8 *nomtexture, int mode) |
charge une texture | |
void | PA_Texture (int numtexture) |
utilise une texture | |
void | PA_3DBox (float x, float y, float z, float longueur, float largeur, float hauteur, float rotatex, float rotatey, float rotatez, uint8 red, uint8 green, uint8 blue) |
cree un box en 3d, position : (x,y,z), de taille longueur, largeur et hauteur, et de couleur (red,green,blue) | |
void | PA_3DBoxTexture (float x, float y, float z, float longueur, float largeur, float hauteur, float rotatex, float rotatey, float rotatez, uint8 red, uint8 green, uint8 blue) |
cree un box en 3d, position : (x,y,z), de taille longueur, largeur et hauteur, et de couleur (red,green,blue) avec coordonnees de texture | |
void | PA_Rotate3D (float x, float y, float z) |
faire une rotation | |
void | PA_Translate3D (float x, float y, float z) |
faire une translation | |
void | PA_Scale3D (float x, float y, float z) |
changer la taille d'un objet | |
void | PA_Vertex3D (float x, float y, float z) |
creer un vertex sans floattov16 | |
void | PA_3Dto2D () |
vous devez utiliser ceci pour utiliser PA_Vertex2D | |
void | PA_Vertex2D (int x, int y) |
creer un vertex 2D(il faut avoir fait PA_3Dto2D() avant pour que ca marche correctement | |
void | PA_TexCoord (float x, float y) |
utilise les coordonnees de texture en reglant un probleme de ndslib | |
int | PA_InitCallList (PA_3DObject *obj) |
int | PA_VertexCallList (PA_3DObject *obj, float x, float y, float z) |
int | PA_TexCoordCallList (PA_3DObject *obj, int x, int y) |
int | PA_EndCallList (PA_3DObject *obj) |
int | PA_Draw3Dobject (PA_3DObject obj) |
int | PA_ScaleCallList (PA_3DObject *obj, float x, float y, float z) |
Variables | |
const u8 | PAlib [] |
const u32 | PAlib_size [] |
int | textureID |
float | angle3dX |
float | angle3dY |
float | viseeX |
float | viseeY |
float | viseeZ |