Game Development Community

Using texture handles

by Erik Madison · in Torque Game Engine Advanced · 05/19/2005 (2:31 pm) · 1 replies

I'm having one heck of time here, getting a custom texture to load on demand. It consistently fails the sanity check. So, I try to brute force it to load, and then again test it. It will still fail.

if (texHandle.isValid()) {
....
} else {
texHandle.set(pathName, &GFXDefaultStaticDiffuseProfile))
if (texHandle.isValid())
....
}

Thats basically what I'm doing. Any blatant errors? What exactly makes it valid, other than its indexed?

#1
05/20/2005 (11:59 am)
IsValid means the GFXTexHandle is pointing to a valid texture object. Have you tried single stepping through the set call to see where it's failing?