Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: about glDrawPixels Draw Bitmap

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    2

    about glDrawPixels Draw Bitmap

    Please Help Me

    What not use glDrawPixels Draw Screen Bitmap Buffer Draw to Form,in 8-Bit and 16-Bit?
    Current succeed Draw 24-bit and 32-Bit.

    24:
    glDrawPixels(Width,Height, GL_BGR, GL_UNSIGNED_BYTE, Data);
    32:
    glDrawPixels(Width,Height, GL_BGR_EXT, GL_UNSIGNED_BYTE, Data);

    need 8-Bit and 16-Bit
    (effect My is Chinese,not speake English,so language it is strange that)

  2. #2
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,261
    glDrawPixels(Width,Height, GL_LUMINANCE, GL_UNSIGNED_BYTE, Data);

    glDrawPixels(Width,Height, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, Data);


    http://www.opengl.org/sdk/docs/man/x...DrawPixels.xml

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    2
    Tank You!

    glDrawPixels(Width,Height, GL_LUMINANCE, GL_UNSIGNED_BYTE, Data);

    as 8-Bit Draw is Color Error,but 16-Bit show message memory error?

    glDrawPixels(Width,Height, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, Data);
    "GL_UNSIGNED_SHORT_5_6_5" is 0x8363?
    not show Bitmap.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •