head 1.1; branch 1.1.1; access ; symbols start:1.1.1.1 PAlibDoc:1.1.1; locks ; strict; comment @# @; 1.1 date 2005.11.02.08.30.24; author jandujar; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.02.08.30.24; author jandujar; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @ PA_lib: PA_3D.h File Reference

PA_3D.h File Reference

3D functions tuto : http://delfare.pizz.biz/ More...

Go to the source code of this file.

Defines

#define texPCX   1
#define texBIN   2

Functions

void PA_Init3D (void)
 Initialise the 3d !!! Big thanks to Delfare for all the 3d functions !
void PA_LoadSplash3D (void)
 Load a PlayerAdvance splash screen... It's always nice to give some credit ;)
void PA_Init3DDrawing (float x1, float y1, float z1, float x2, float y2, float z2)
 takes care of the perspective, (x1,y1,z1) is the position of the camera, (x2,y2,z2) is where the camera looks at
void PA_glulookat (float eyex, float eyey, float eyez, float lookAtx, float lookAty, float lookAtz, float upx, float upy, float upz)
 takes care of the camera, (eyex,eyey,eyez) is the position of the camera, (lookAtx,lookAty,lookAtz) is where the camera looks at, (upx,upy,upz) is the coord of the up
void PA_image8to16 (sImage *img)
void PA_VueKeys (void)
 takes care of the sight with the keys, (viseeX,viseeY,viseeZ) is where the camera looks at, you must use PA_glulookat with viseeX,viseeY and viseeZ
void PA_LoadTexture (int numtexture, u8 *nomtexture, int mode)
 load a texture
void PA_Texture (int numtexture)
 use a 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)
 create a 3D box
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)
 Create a 3D Box, but with a nice texture...
void PA_Rotate3D (float x, float y, float z)
 rotate
void PA_Translate3D (float x, float y, float z)
 translate
void PA_Scale3D (float x, float y, float z)
 scale
void PA_Vertex3D (float x, float y, float z)
 create a vertex without floatov16
void PA_3Dto2D ()
 you must use it for use PA_Vertex2D
void PA_Vertex2D (int x, int y)
 create a vertex in 2D
void PA_TexCoord (float x, float y)
 use the tex coord

Variables

const u8 PAlib []
const u32 PAlib_size []
int textureID
float angle3dX
float angle3dY
float viseeX
float viseeY
float viseeZ


Detailed Description

3D functions tuto : http://delfare.pizz.biz/


Generated on Fri Oct 28 23:16:51 2005 for PA_lib by  doxygen 1.3.9.1
@ 1.1.1.1 log @Initial import of PalibDoc, begin on PAlib0.64b @ text @@