Results 1 to 3 of 3

Thread: glDrawPixels with Qt

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2005
    Location
    Dayton
    Posts
    148

    glDrawPixels with Qt

    I am helping a friend develop an application on Solaris that is using 8-bit color. He has set up a QGLColormap with my different colors. He is then storing these different indices referring to the Colormap into an array called mpPixels. He then set up my raster and draw my pixels. The indices are being stored in one function but all the values in the array are from 0-63. He has declared 64 different colors he wants to use. The code looks like this:

    Code :
     glRasterPos2i( 0, 0 );
    glDrawPixels( mNumSpectralLines, mNumRangeBins * mNumDopplerBins, GL_COLOR_INDEX, GL_INT, mpPixels );
    Do I need to set up some sort of palette to know what these indices are doing? My QGLWidget knows what its QGLColormap is, but there seems to be something missing that I need to do. If you need more information and I will try to provide more information. Thanks!

  2. #2
    Guest

    Re: glDrawPixels with Qt

    Originally posted by ToddAtWSU:
    I am helping a friend develop an application on Solaris that is using 8-bit color. He has set up a QGLColormap with my different colors. He is then storing these different indices referring to the Colormap into an array called mpPixels. He then set up my raster and draw my pixels. The indices are being stored in one function but all the values in the array are from 0-63. He has declared 64 different colors he wants to use. The code looks like this:

    Code :
     glRasterPos2i( 0, 0 );
    glDrawPixels( mNumSpectralLines, mNumRangeBins * mNumDopplerBins, GL_COLOR_INDEX, GL_INT, mpPixels );
    Do I need to set up some sort of palette to know what these indices are doing? My QGLWidget knows what its QGLColormap is, but there seems to be something missing that I need to do. If you need more information and I will try to provide more information. Thanks!
    i need more information.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Sep 2005
    Location
    Dayton
    Posts
    148

    Re: glDrawPixels with Qt

    i need more information.
    Could you please tell me what type of information you need. It is hard for me to know what to get you if you don't state what information you need. Thanks!

Similar Threads

  1. Using glDrawPixels
    By Mukund in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-27-2010, 02:51 PM
  2. glDrawPixels
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-10-2003, 07:43 AM
  3. glDrawPixels
    By sgiuser in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-07-2001, 12:10 PM
  4. glDrawPixels help; glDrawPixels vs. Texture Mapping for bitmaps
    By vorbisus in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-11-2001, 10:07 AM
  5. glDrawPixels
    By JBrooks in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-16-2000, 10:46 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