Add load texture method and flag to indicate whether a texture has been
loaded for game objects.