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?
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?
About the author
Associate Kyle Carter