Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where to put the code?
#1
Hi,

In the book you say (section: Add some code, picture of Lenna): After the FileHandler add this code:

MyFiles FileHandler;
int Width, Height;
char* OurRawData = FileHandler.Load((char*)"../Lenna.png", &Width, &Height);
if (OurRawData == NULL) printf("We failed to load\n");

WHERE do I have to put this code? In which file and on which location?

Best Regards, Patrick

update: it seems that putting it after this line in MyFiles.cpp is the place to be:
unsigned char *data = stbi_load(filename, width, height, &comp, 4);
Reply


Messages In This Thread
Where to put the code? - by pahendriks - 03-15-2018, 09:23 PM
RE: Where to put the code? - by Brian Beuken - 03-15-2018, 09:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)