Using fastfile lib to read images FAST?
Posted: Mon Aug 01, 2005 11:07 pm
Let's say I do not find the LoadImage() command fast enough...
How can I use FastFile for doing this faster, and then make sure I get
this right, so that the UseImage() command can be used with no problems?
Like, old code:
-----------------
LoadImage(0,Texture$)
CreateTexture(a,Billboard_Width,Billboard_Height)
StartDrawing(TextureOutput(a))
DrawImage(UseImage(0),0,0,TextureWidth(a),TextureHeight(a)) StopDrawing()
Never mind the texturepart and how it's done. It can be programmed otherwise, but due to 3dengine.dll problems, I must DRAW the image
onto the texture, because of a textureloading bug (as posted earlier)
Focus only on how to replace the LoadImage command with FastFile
and that the end result is UseImage(0) which then is the fastloaded file.
How can I use FastFile for doing this faster, and then make sure I get
this right, so that the UseImage() command can be used with no problems?
Like, old code:
-----------------
LoadImage(0,Texture$)
CreateTexture(a,Billboard_Width,Billboard_Height)
StartDrawing(TextureOutput(a))
DrawImage(UseImage(0),0,0,TextureWidth(a),TextureHeight(a)) StopDrawing()
Never mind the texturepart and how it's done. It can be programmed otherwise, but due to 3dengine.dll problems, I must DRAW the image
onto the texture, because of a textureloading bug (as posted earlier)
Focus only on how to replace the LoadImage command with FastFile
and that the end result is UseImage(0) which then is the fastloaded file.