[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Thread Index]
[Monthly Archives] [List Home]

[Virtools] problem with LoadImage



Hi,
I create my own player that load a vmo file. Into my projector there is a procedure that change the object's texture with an external file (.jpg) .
But when I call that procedure an application error rise!
Nobady can halp me?
 
void ChangeTexture(char *nObj, char *nFile)
{
 CKBeObject *obj=(CKBeObject *)TheCKContext->GetObjectByName(nObj);
 if (obj) {
  CKTexture *Tex=(CKTexture *) obj;
  Tex->LoadImage(nFile,0);
 }
 
}
 
Thanks