OK, thanks. Now that's what I got so far and the answer to lot of questions in this thread:
(TBGL)-Texture_Handling , to be used as an include-file or can be copied into code.
Minimal OS: Windows XP Sp2,
uses TBGL, needs FreeImage.dll
-handle enumerating -(has to be done exclusively by this script in order to work correctly)
-load textures from different formats
-create empty textures
-delete textures, single or in a range
works like this:
myTextureExists = TEXTURE_Exists(ID_to_Check)
TEXTURE_Kill(First_to_Delete [, Last_to_Delete])
myNewTextureID = TEXTURE_GetFromFile( 0, "c:\myTexture.dib")
' (where the 0 is can be any value below 1)
'or
success = TEXTURE_GetFromFile( %TextureID, "c:\myTexture.png" )
' ( where %TextureID is any number from 1 to 1024)
myNewTextureID = TEXTURE_GetEmpty( 0, width, height, [R, G, B, A] )
'or
success = TEXTURE_GetEmpty( %TextureID, width, height, [R, G, B, A] )
(user also can retrieve unused IDs by TEXTURE_GetNewID)
Bookmarks