Hello,
This is my first post. I'm also teaching myself everything with regards to game development, so I apologise if I seem a little naive.
I'm currently programming a rendering function for my game and I'm trying to work out what is the best way to load textures into the game.
The game world is a voxel grid, where each voxel is a pointer to a predefined block struct.
Said struct contains the SDL_Texture pointer along with other data.
What is rendered to the screen is a small window of blocks, say 21x15 blocks with each block having a resolution of 16x16 pixels.
Not really mega stuff.
So should I set every pointer at startup or should I load everything into the game as the renderer needs it and then delete it.
Like I say I'm not to knowledgable here, so which is more efficient or what have you.
Thank you.