I am testing some code with jruby and I use the opengl method
glGenTextures(GLsizei n, GLuint *textures) that I have previously
imported with java_import. The second parameter is a vector where the
generated textures will be stored.
@textures = [-1]
glGenTextures(1, @textures.to_java(:int), 0)
The thing is the code works fine, but the value of the elements in
@textures should change but it does not. Any ideas of what I am doing