Article View: comp.windows.x
Article #38300Re: Having hard time using XGetImage with glDrawPixels in OpenGL
From: Michael Sweet
Date: Mon, 19 May 1997 00:00
Date: Mon, 19 May 1997 00:00
22 lines
1765 bytes
1765 bytes
Shuky Rosinger wrote: > ... > I am using Linux with Mesa 2.2. I use 16bpp display with visual of depth > 16. > I would suspect that this is the problem - XGetImage returns pixels in the source windows/pixmap's visual & depth. I don't remember if Mesa supports a 16-bit RGB extension format or not. If so, use that instead of GL_UNSIGNED_BYTE (e.g. GL_UNSIGNED_SHORT_5_5_5_1). If there isn't support for the 16-bit RGB(A) visual type, you'll need to convert your 16-bit pixels to 24-bit RGB (or 32-bit RGBA). -- ________________________________________________________________________ Mike Sweet Software for SGI and Sun Easy Software Products (301) 373-9603 Workstation 44145 Airport View Drive mike@easysw.com http://www.easysw.com Hollywood, Maryland 20636
Technical Details
Message-ID:
<3380E892.1CFB@easysw.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<337FFE27.E564C73@numbat.cs.rmit.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6cac,610edefeb235a8b3 X-Google-Attributes: gidf6cac,public X-Google-Thread: 1667f1,610edefeb235a8b3 X-Google-Attributes: gid1667f1,public X-Google-Thread: 103734,610edefeb235a8b3 X-Google-Attributes: gid103734,public X-Google-Thread: f65bb,610edefeb235a8b3 X-Google-Attributes: gidf65bb,public X-Google-Thread: f4bda,610edefeb235a8b3 X-Google-Attributes: gidf4bda,public X-Google-Thread: 1082b0,610edefeb235a8b3 X-Google-Attributes: gid1082b0,public From: Michael Sweet <mike@easysw.com> Subject: Re: Having hard time using XGetImage with glDrawPixels in OpenGL Date: 1997/05/19 Message-ID: <3380E892.1CFB@easysw.com> X-Deja-AN: 242485384 References: <337FFE27.E564C73@numbat.cs.rmit.edu.au> Organization: Easy Software Products Newsgroups: comp.windows.x,comp.os.linux.x,comp.graphics.api.opengl,comp.windows.x.i386unix,fj.windows.x,de.comp.os.linux.x