im following NeHe tutorial along these days... it run smoothly until lesson 8... when it come to lesson 9, the C code using structure like this:
typedef struct
{
int r, g, b;
GLfloat dist;
GLfloat angle;
}
stars;
stars star[num];
in blitzmax, i do this:
type stars
field r,g,b
field dist#
field angle#
endtype
local star:stars[num] = new stars
i can't compile it... arghh... im suck at types man
how to create new array types then?? i dont even know am i asking the rite question..
typedef struct
{
int r, g, b;
GLfloat dist;
GLfloat angle;
}
stars;
stars star[num];
in blitzmax, i do this:
type stars
field r,g,b
field dist#
field angle#
endtype
local star:stars[num] = new stars
i can't compile it... arghh... im suck at types man
how to create new array types then?? i dont even know am i asking the rite question..