I’ve got a little project in mind, but I want to make sure I start off on the right foot.
I’m going to have an unknown number of textures, each with an associated number of vertices (not just the ones for the texture ‘frame’) and other objects.
In my mind, what I’m thinking of is a varying sized bag/list/array of objects sitting up in the CPU, each object having a link to the visual(texture/vertex) part of itself which lives down in the GPU, where all transformations get done as well.
All of the examples / tutorials I’ve found however, have all of the visual elements stuffed into one fixed size array which gets (I think) compiled into the program which gets run on the GPU.
Can anyone - in very plain English - correct my misconceptions & suggest a structure that will let me do what I want to do?
Then I can start building with the easiest bits first & slowly learn the rest - but all the while knowing where each bit I’m working on fits into the picture.
Many thanks for reading,