Display arbitrary size 2d image in opengl
Posted
by Martin Beckett
on Stack Overflow
See other posts from Stack Overflow
or by Martin Beckett
Published on 2008-11-25T17:23:53Z
Indexed on
2010/04/02
6:43 UTC
Read the original article
Hit count: 382
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.
© Stack Overflow or respective owner