You can iterate and check manually like
    
    
    var
      intpair = newseq[(int, int)]()
      texture: int
      lightmap: int
    
    for thepair in intpair:
      if thepair[0] == texture and thepair[1] == lightmap:
        doSomething((texture, lightmap))
    
    
    Run

or you can use define
    
    
    type
      IntPair = tuple
        a: int
        b: int
    
    proc `==`(a, b: IntPair): bool =
      a.a == b.a and a.b == b.b
    
    var
      texture: int
      lightmap: int
      intpairs = newseq[IntPair]()
      thepair = (texture, lightmap)
      pos = intpairs.find thepair
    
    if pos != -1: doSomething(thepair)
    
    
    Run

Reply via email to