Array with pixels

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).]

I think maybe converting it into a texture map would be better and apply it to a quad.

Originally posted by rainday:
[b]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).][/b]

Thank you, nexusone !
Can i call u in ICQ ?

Sure, I chat often with other openGL programmers.

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

[/b]