Threaded View

Texture mapping and display from a float image array

Hi everybody!

Sorry if this topic has been discussed previously on the web, but I have been looking for examples on the forum an internet and I have not found anything
I have a question relative to the use of glTexture2D(...).

I have a float array which contains the value (only a single value) of a image pixel. Nowadays I display it using OpenGL primitives but it is slow, so I want to display it using Texture mapping and grayscale. But the problem is that anytime I try to use it I get nothing (blank screen).