Results 1 to 4 of 4

Thread: Array with pixels

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    5

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

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Array with pixels

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

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    5

    Re: Array with pixels

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

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Array with pixels

    Sure, I chat often with other openGL programmers.

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


Similar Threads

  1. Replies: 0
    Last Post: 04-24-2014, 09:28 AM
  2. upload struct array to uniform block array?
    By Schnulla in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-27-2010, 03:32 PM
  3. Want to read pixels of 3D image into array
    By glenc in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-16-2005, 06:40 PM
  4. Huge 2D array of changing Pixels
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-25-2005, 09:36 AM
  5. Read pixels from a bitmap image to a array
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-07-2004, 11:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean