I have a variable called SDL_Renderer* gRenderer. This variable is stated in private, in a header file called initialization. There is a function also declared public within the header file.
bool Initial();
the Initial function changes the value of gRenderer from NULL, to something different.
I want to access the different variable from a different class, in a different function. Whenever I use friend classes, it returns me the value NULL.