void LoadoutManager::setUp(SDL_Renderer* renderer, const int WINDOW_WIDTH) {
int loadoutUIWidth = 220;
int loadoutPaddingY = 50;
int stripSize = (WINDOW_WIDTH - (loadoutSize * loadoutUIWidth) / (loadoutSize + 1));
for (int i = 0; i < loadoutSize; ++i) {
//loadouts[i]
// render stuff
}
}
I feel like the passing in of the window width and the renderer is a bad practice.
The purpose of this method is to create the canvas/texture of a certain aspect of the GUI (loadouts)
what's the best way to go about this and what do you guys think of the current setup