03-16-2018, 07:57 PM
(This post was last modified: 03-16-2018, 07:58 PM by Brian Beuken.)
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
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
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's