Ah, hehe! The most hard-to-crack bugs are often the most easiest/silliest to solve. You really should check if everything loads correctly.
The MD2 function you have written returns bool, caatch it! =)
help with segmentation fault on MD2 file
I have added the following
//generic
if(m_model.Load("stuff.md2","skin.tga")==false)exit(0);
if(...................................)........)exit(0);
if(.............................................)exit(0);
and the files seem to load
also my TargaImage Load is bool
and I have added the same check on it and it seems to load.
I dont know how to step throught the code via gdb on DEV-C++
if i try at prompt gdb project.exe it wont recognise project.exe (under Windows)
As for Linux gdb project works but I dont know how to step through it yeight!.
//generic
if(m_model.Load("stuff.md2","skin.tga")==false)exit(0);
if(...................................)........)exit(0);
if(.............................................)exit(0);
and the files seem to load
also my TargaImage Load is bool
and I have added the same check on it and it seems to load.
I dont know how to step throught the code via gdb on DEV-C++
if i try at prompt gdb project.exe it wont recognise project.exe (under Windows)
As for Linux gdb project works but I dont know how to step through it yeight!.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement