The Call to DisplayHud probably wants to go in the main loop (ie Diplay every frame)
1. Constants
2. Globals
3. Types
4. Things that only need to be done once.
5. Start Main Loop
6. Things that need to be done Before frame is drawn
7. Draw Frame (Render)
8. Things that need to be done after frame is drawn (ie HUD)
9. Go to 5
Normaly I have 1 and 2 in the main program, 3 in an include, 4 in an include with all the functions needed for 6, 5 and 7 in main file and 8 in another include. (Not really in includes, but in a project manager as seperate files)
If you are realy stuck, I would recomend downloading "Protean" which has an excelent prototype 3d and 2d template. (and its a good ide anyway). And has a project manager to ease includes (see above)
1. Constants
2. Globals
3. Types
4. Things that only need to be done once.
5. Start Main Loop
6. Things that need to be done Before frame is drawn
7. Draw Frame (Render)
8. Things that need to be done after frame is drawn (ie HUD)
9. Go to 5
Normaly I have 1 and 2 in the main program, 3 in an include, 4 in an include with all the functions needed for 6, 5 and 7 in main file and 8 in another include. (Not really in includes, but in a project manager as seperate files)
If you are realy stuck, I would recomend downloading "Protean" which has an excelent prototype 3d and 2d template. (and its a good ide anyway). And has a project manager to ease includes (see above)