Advertisement

X11/XLib - Pixmap: Is there a way to access the pixel buffer directly?

Started by July 12, 2004 02:44 PM
12 comments, last by owl 20 years, 2 months ago
I can't find the documentation of the XLib Pixmap structure. I've seen that people ussually uses a XImage to do double buffering in X. I want to use a Pixmap instead. Is it possible/recommended? EDIT: I want to access the pixmap buffer directly to plot pixel values myself. Thanks.
[size="2"]I like the Walrus best.
bump
[size="2"]I like the Walrus best.
Advertisement
A XImage is client-side. A X pixmap is server-side.
I know. You mean it is not possible?

Thanks.
[size="2"]I like the Walrus best.
Look up the MIT-SHM extension or DGA (direct graphics access). They may do what you want.
I'll take a look at it. Thank you.
[size="2"]I like the Walrus best.
Advertisement
I just found out that Xrender is the way to do fast drawing in X.

Thankyou everyoneesss.
[size="2"]I like the Walrus best.
theoretically.

If the driver accelerates render, then you have every reason to use nothing but render and complete forget X's core graphics routines. It's superior.

Some render accelerations suck, however. NVIDIA's driver (last I checjed, long ago) was super buggy (w.r.t. render acceleration) and had to be manually enabled.
NVIDIA recently released new drivers for NIX
This page explains a bit. Maybe useful to you.
http://www.cis.gsu.edu/~shong/oojokes/

This topic is closed to new replies.

Advertisement