|
-
May 14th, 2007, 09:29 AM
#1
Thread Starter
Junior Member
How can I compare textures?
Hi again ,
I try to put all textures I need into an array. Now I have the problem with the checking of the textures if they are already in the array.
Something like
Code:
For i = 0 To ((UBound(texture_array)) - 1)
If current_texture = texture_array(i) Then
texture_exists = True
Exit For
End If
Next i
doesn´t work, would make it too easy .
Thx in advance.
-
May 14th, 2007, 12:20 PM
#2
Lively Member
Re: How can I compare textures?
What you can do is for each texture, have a string that holds the path/filename associated with it and just compare those, since filenames are unique. Then if there is a match with the filenames, then that texture is already loaded.
-
May 16th, 2007, 03:19 AM
#3
Thread Starter
Junior Member
Re: How can I compare textures?
omg, of course, too obvious
thank you
-
May 22nd, 2007, 03:12 PM
#4
New Member
Re: How can I compare textures?
can you use C#, i can help
-
May 23rd, 2007, 04:58 AM
#5
Thread Starter
Junior Member
Re: How can I compare textures?
Hey thanks Idian,
although the other way is working I´m still interrested in that. I think I´ll get that. Made c# at school but was not really helpfull as we did it 1/2 a year and the teacher didn´t know what he´s doing but as I write in Cobol, C++ and VB I think I´ll can handle that language too
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|