Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualMarkS

Posted 03 January 2013 - 03:03 PM

That is really poor error handling in the Initialize function. It tests for two different things, file loading and vertex buffer creation, and returns false from either case upon failure. How do you know if the file failed to load or the vertex buffer failed to be created? More over, how can you tell why the file failed to load or why the vertex buffer failed to be created?
 
You need to know specifics before you can debug. I'm going to guess that the textures are not in the directory with the executable and cannot be found. But that is just a guess.

#1MarkS

Posted 03 January 2013 - 02:43 PM

That is really poor error handling in the Initialize function. It tests for two different things, file loading and vertex buffer creation, and returns false from either case upon failure. How do you know if the file failed to load or the vertex buffer failed to be created? More over, how can you tell why the file failed to load or why the vertex buffer failed to be created?

 

You need to know specifics before you can debug. I going to guess that the textures are not in the directory with the executable and cannot be found. But that is just a guess.


PARTNERS