From: Peter A. <kaf...@xt...> - 2003-05-31 02:16:11
|
Could anyone tell me how (or point me to code that shows how) to create an opengl texture using gl4java from a image.io source (that is, an image using the buffered image / raster classes). My problem in particular is how to bridge between what I can get from the Raster.getPixels method (an int array) and data that the openGL texture creation functions are happy with. (I'm used to doing this in C, and dealing with the image data as an array of unsigned bytes) Thanks in advance! |