I have a path to my file, which is defined as follows:
const char* GROUND_TEXTURE_FILE = "objects/textures/grass.jpg";
And here is the function that I use to upload the image:
bool loadTexImage2D(const string &fileName, GLenum target) { ...
What is wrong in my code? Why ilLoadImage program crash when ilLoadImage is ilLoadImage ? I think file.c_str() should work fine as a wchar_t * type or not? Thanks for the answer:)
source share