How can I compare textures?
Hi again :wave: ,
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 :rolleyes: .
Thx in advance.
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.
Re: How can I compare textures?
omg, of course, too obvious :sick:
thank you :blush:
Re: How can I compare textures?
can you use C#, i can help
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 :mad: but as I write in Cobol, C++ and VB I think I´ll can handle that language too :wave: