Heya
How your apps are organized?
cause global vars are not advised
thx
(sorry for my poor and bad english)
program structure
yep I know c++ (i begin but it isn't the first programming language i have learnt). However, because of local vars, i can't write :
'cause scene manager (and the others elements of the engine) can't be reached in gameLoop for example, he has been declared in the main function...
And i cannot use global vars as we said. So, how are your games/3d apps using IrrLicht structured/organized?
Thx
(yes, it's a strange question, i know
)
Code: Select all
int main {
....
gameLoop();
}
void gameLoop {
updatePlayerPos();
}
void updatePlayerPos {
....
}

Thx
(yes, it's a strange question, i know

-
- Posts: 279
- Joined: Fri Dec 24, 2004 6:37 pm
You can have a look at the structure IrrWizard uses, no global variables in sight, so you might like it.
But if that freaks you out too much, then have a look at the ICE Framework which is solving a similar problem but has a much smaller code base.
________
Motorcycle tires
But if that freaks you out too much, then have a look at the ICE Framework which is solving a similar problem but has a much smaller code base.
________
Motorcycle tires