Display arbitrary size 2d image in opengl
- by Martin Beckett
I need to display 2d images in opengl using textures.
The image dimensions are not necessarily powers of 2.
I thought of creating a larger texture and restricting the display to the part I was using but the image data will be shared with openCV so I don't want to copy data a pixel at a time into a larger texture.
EDIT - it turns out that even the simplest Intel on board graphics under Windows supports none-power-of-2 textures.