03-16-2018, 08:14 PM
(This post was last modified: 03-16-2018, 08:15 PM by pahendriks.)
(03-16-2018, 07:57 PM)Brian Beuken Wrote: hmmm, how did you get to that
the char* MyFiles::Load(.....) method is itself the load, the text in red is how you would use it in your main function
If you think about what's happening. you are loading data from a filename into *data, but then you are loading something else into *OurRawData.
So basically 2 things are being loaded here....
But if you look at the return it only returns the 1st value at *data
So the red code is in totally the wrong place, it should be part of your main function
When I put the red in main() I get an error that MyFiles is not declared in this scope.
Are sources files going to be downloadable? I'm more busy with typing and correcting than learning the concepts of game programming....