I have this function:
    
    
    proc BufferData*[T](target:BufferTarget, data:openarray[T], 
usage:BufferDataUsage) {.inline.} =
        
glBufferData(target.GLenum,data.len*T.sizeof().GLsizeiptr,data.unsafeAddr,usage.GLenum)
    

It works fine if I pass it a seq[float32]. If I pass it a seq[some_object] 
however, I get a seemingly unrelated error about GLenum not being declared

Any ideas/workarounds? 

Reply via email to