moving ground terrain - problem accesing struct

hi all

i'm doing a game now by the name of galatea for my APCG coursework and i'm kinda stuck in rendering the moving ground terrain part. The game is composed of three major parts namely
GameInit
GameMain
GameShutDown
I created 200 buildings in the game init part and have stored all the attribs in a struct data type. Problem is i can't access the struct draw() functions from GameMain where it is the part that game runs like kinda looping 50 times in a sec i think. I think I throughly settled the mechanics part but its only the problem accesing. It seems my struct needs to be global or somethin but i dunno how.

My declarations can be seen above. The 'structure' struct as some of u might already know, is unrecognised in Game MAin. Please do not ask me to revert to classes cos my instruction guide says use the struct. Then again, how do u create 200 instances of the building just like i have done with struct, if u can teach me i would be most happy. Thanks n have a nice day ppl

ok tis is bad , i seriously dunno wat ure talking about...like i said, i already got the mechanics figured, the only problem is with accessing the draw function from GameMain.....i dunno how to make the function call from across the section. anyways thanks 4 ur help

Well for me to see the structure of your class hierarchy you will have to posts some key snippets of code so I can help you.

But to move the terrain my statement was correct. Terrain is created by vertexes at varying heights. Normally all terrain quads and triangles are the same size; it is only their y component that is different thus creating hills and valleys. To move the terrain you would translate those vertexes relative to the viewer or camera. Like driving down the road - you are moving forward but everything outside is moving towards you or backwards thus the negative vector.