I am using an OpenGL wrapper called: "SFML" and there is a class that exists to load images from a particular file location:
1 2
sf::Image myImg;//Create new "Image" instance
if (! myImg.LoadFromFile( "myImg.bmp" ) ) EXIT_FAILURE;
The previous code snippet would be the process to follow for each image that I would like to load. What I would like to do instead is create my own function that would perform my previous example code based on parameters:
LoadImg( <Name of Instance>, <Location of Image> );