Using fastfile lib to read images FAST?

Advanced game related topics
User avatar
oakvalley
User
User
Posts: 77
Joined: Sun Aug 08, 2004 6:34 pm
Location: Norway
Contact:

Using fastfile lib to read images FAST?

Post by oakvalley »

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.
Regards Stone Oakvalley
Currently @ PB 5.70