kaplox
11-14-2008, 03:40 AM
Hello,
I'm new in OpenGL, so I'm sorry if I ask you in an inappropiate way. I want to draw an image using opengl. My image is calculated and stored in an 1D float array and each position is a pixel and contains a value which determines the colour of this pixel. Once the image is calculated I need to draw it in the screen. Do you know what is the best way to put it in the screen? I don't know if I need to use textures or vertex buffer objects or something else or just use the opengl primitives like glVertex, etc... , so I'm confused about it and I hope you can help me. If you need more details, here I am.
Thanks you very much.
Greetings
I'm new in OpenGL, so I'm sorry if I ask you in an inappropiate way. I want to draw an image using opengl. My image is calculated and stored in an 1D float array and each position is a pixel and contains a value which determines the colour of this pixel. Once the image is calculated I need to draw it in the screen. Do you know what is the best way to put it in the screen? I don't know if I need to use textures or vertex buffer objects or something else or just use the opengl primitives like glVertex, etc... , so I'm confused about it and I hope you can help me. If you need more details, here I am.
Thanks you very much.
Greetings