🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38296

Having hard time using XGetImage with glDrawPixels in OpenGL

#38296
From: Shuky Rosinger
Date: Mon, 19 May 1997 00:00
18 lines
1446 bytes
Hi all,

I am having a very hard time drawing pixel data with glDrawPixels onto
an OpenGL scene. I use glDrawPixels with GL_RGB, GL_UNSIGNED_BYTE. The
image is retrieved with XGetImage.

The resulting image in the OpenGL scene is somehow not synchronized (has
the effect of a TV has bad horizontal sync or vertical sync).

I am using Linux with Mesa 2.2. I use 16bpp display with visual of depth
16.

Does anyone know what I am doing wrong or what I have to do to make it
work?

Thanks in advance,
Shuky
Technical Details
Message-ID: <337FFE27.E564C73@numbat.cs.rmit.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6cac,610edefeb235a8b3,start
X-Google-Attributes: gidf6cac,public
X-Google-Thread: 103734,610edefeb235a8b3,start
X-Google-Attributes: gid103734,public
X-Google-Thread: 1667f1,610edefeb235a8b3,start
X-Google-Attributes: gid1667f1,public
X-Google-Thread: 1082b0,610edefeb235a8b3,start
X-Google-Attributes: gid1082b0,public
X-Google-Thread: f65bb,610edefeb235a8b3,start
X-Google-Attributes: gidf65bb,public
X-Google-Thread: f4bda,610edefeb235a8b3,start
X-Google-Attributes: gidf4bda,public
From: Shuky Rosinger <rosinger@numbat.cs.rmit.edu.au>
Subject: Having hard time using XGetImage with glDrawPixels in OpenGL
Date: 1997/05/19
Message-ID: <337FFE27.E564C73@numbat.cs.rmit.edu.au>
X-Deja-AN: 242359156
Organization: RMIT
Newsgroups: comp.windows.x,comp.os.linux.x,comp.graphics.api.opengl,comp.windows.x.i386unix,fj.windows.x,de.comp.os.linux.x