How can I load a texture in DX9 without stucking the application

El_Yind

New member
Joined
Oct 22, 2007
Messages
2
Programming Experience
3-5
Hi.

I'm working in a application like Google Earth Map that load a lot of textures of 512x512 in JPG, It load the textures but when a texture is loading you can feel how the program stops for a second, so I'd like to know how can I load the images without affect the interface of the user so when a image is loading and the user is rendering that space it should show another texture that says "LOADING..." or just dont show nothing or better like Google Earth that begin with a very pixalated image and it begin to get clearest.

Well thats all :)

I use VB2005 and this function to load textures
VB.NET:
    Function createTexture(ByVal filesrc As String, Optional ByVal colorKey As Integer = 0) As Texture
        Return TextureLoader.FromFile(device, filesrc, _
                     0, 0, 0, 0, Format.Unknown, Pool.Managed, Filter.Linear, Filter.Linear, colorKey)
    End Function

Thanks folks!
 
Back
Top