I just started with Dark GDK and I've only learned the basics of c++. I'm sorry if this seems like an easy question or something. Okay, now if you make an object in your DarkGDK function and then call a function accessing that objects variables, will it work? I've been trying to get it to work, and I've had no luck. Here's an example of what I'm talking about.
class bla{
int varible = 1;
public:
int getvariable(){
return bla;
}
};
void blafunction(){
int bla2 = object.getvarible();
}
void DarkGDK(void){
bla object;
while(LookGDK())
{
blafunction();
}
return;
}
Sorry about it not being indented or anything, I just typed it in quick in this message box. So is it possible to call object functions while in a different function than it was declared it?