; If IsImage(0)<>0 ; FreeImage(0) ; EndIf ; ; resulta=LoadImage(0,Texture$) ; ; PlaySound(18) ; If resulta=0 ; MessageRequester("ERROR", "CRASH DETECTED - NOT FOUND: "+Texture$+Chr(10)+"RS 232 string is:"+rs_string$+Chr(10)+rs_string2$+Chr(10)+rs_string8$) ; End ; EndIf ; ; rey=CreateTexture(a,Billboard_Width,Billboard_Height) ;Force the texture to match the billboard size ; ; ; Draw the image onto the current texture. ; If rey<>0 ; StartDrawing(TextureOutput(a)) ; DrawImage(UseImage(0),0,0,TextureWidth(a),TextureHeight(a)) ; Must resize the image to fit properly the predefined texture. 3DENGINE workaround!! ; StopDrawing() ; EndIf