Hiya,
Not sure if this is the right place but I thought I’d ask OpenGL programmers
I’m learning OpenGL and writing a graphics engine at the same time I’ve defined a structure in a text file and a world in another file.
In my program I read a list of required structures and their locations from the world file. Now is this the way its done: For each required structure I will create an instance of class structure, storing all the details in the instance from the file including an array of locations for the structure to be placed. Each instance of structure I create, I will store in an array ‘StructureList’.
Then when its time to render, I will go from the structure array rendering all the structures in their instances.
Any advice / help would be grateful Trying to figure out how a game would do it
Thanks
Paul