the same problem appears when I call the function "desenhar" that requires the pointer g too
the header of the .c file is this
Code:
typedef struct bola_st{
float x,y,z,t;
struct bola *next;
} bola_st;
double calculo(struct bola_st *, float, float ,int, float);
void desenhar(struct bola_st*, float ,BITMAP *, BITMAP *, BITMAP *, float );
and here I call the functions..
Code:
while(var_tempo>0){
calculo(g,TEMPO_TOTAL,b,h,bolasps); var_tempo--;
}
desenhar(g, h, pistola_lado, bola, bola_preta, bolasps);
}
and then I start defining the functions
Code:
double calculo(struct bola_st *g, float TEMPO_TOTAL, float h, int b, float bolasps){
(...)
void desenhar(struct bola_st *g, float h, BITMAP *pistola_lado, BITMAP *bola, BITMAP *bola_preta, float bolasps){
(...)