Hello people,
I am writing pascal-wrapper for raydium. i have some questions about C language. I programmed in C last time in 1999.
1. I see some definitons in raydium-headerfiles.
#define RAYDIUM_ODE_AUTODETECT
-1.f :
What means
-1.f? Is it float, when i declare it as variable can i write it as:
float RAYDIUM_ODE_AUTODETECT = -1.0 ;
#define RAYDIUM_ODE_MATERIAL_HARD 0.9,0.1
Is this array? Like:
float RAYDIUM_ODE_MATERIAL_HARD[]={0.9,0.1};
#define RAYDIUM_ODE_JOINT_AXE_X 1,0,0
Is this array too? Like:
int RAYDIUM_ODE_JOINT_AXE_X[]={1,0,0};
2. I am converting raydium-sdk-example test6.c to pascal. I see in test6.c following:
Code:
int e1
...
char *c1,*c2;
int explo=-1;
......
if((c1 && *c1==29))
explo=e1;
I can not understand this comparison:
(c1 && *c1==29)What compared here value and adress of c1? Can anyone tell me more, maybe in pascal?
Best Regards!