I have a class for loading and render objects in OpenGL. For loading objects I have a function called LoadFile(std::string FilePath) which work just fine but now I also want to load a file from the constructor so I tried doing this:
CObject(std::string FilePath) { CObject(); // set all values to 0 LoadFile(FilePath); } But doing this crashes my app whenever I try to render and I really have no idea why :s.
CObject()? And please work on your acception rate.