Results 1 to 5 of 5

Thread: How can I compare textures?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    27

    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.

  2. #2
    Lively Member
    Join Date
    Jul 2002
    Posts
    86

    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.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    27

    Re: How can I compare textures?

    omg, of course, too obvious

    thank you

  4. #4

    Re: How can I compare textures?

    can you use C#, i can help

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    27

    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
  •  



Click Here to Expand Forum to Full Width