PDA

View Full Version : Array with pixels



rainday
10-23-2002, 01:21 PM
Hi !
I have two-dimensianal array. Each item of this array (each item = 1 byte) is color of pixel (index of color). How i can show this array ? Can I use glDrawPixels() ? I don't wanna use glIndex()...

I've just started to learn OpenGL & i want rewrite own old DOS-program.
Can anyone help me ?
Thank u in advance.

[This message has been edited by rainday (edited 10-23-2002).]

nexusone
10-23-2002, 05:06 PM
I think maybe converting it into a texture map would be better and apply it to a quad.


Originally posted by rainday:
Hi !
I have two-dimensianal array. Each item of this array (each item = 1 byte) is color of pixel (index of color). How i can show this array ? Can I use glDrawPixels() ? I don't wanna use glIndex()...

I've just started to learn OpenGL & i want rewrite own old DOS-program.
Can anyone help me ?
Thank u in advance.

[This message has been edited by rainday (edited 10-23-2002).]

rainday
10-24-2002, 12:58 AM
Thank you, nexusone !
Can i call u in ICQ ?

nexusone
10-24-2002, 04:08 AM
Sure, I chat often with other openGL programmers.


Originally posted by rainday:
Thank you, nexusone !
Can i call u in ICQ ?