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, 6 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.
I'll take a look at it. Thank you.
[size="2"]I like the Walrus best.
I just found out that Xrender is the way to do fast drawing in X.

Thankyou everyoneesss.
[size="2"]I like the Walrus best.
Advertisement
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/
Quote:
Original post by danne89
This page explains a bit. Maybe useful to you.


Thank you. I'm looking for a way to make a GUI independant of the window manager, so no matter which one you're running you'll be able to run the program.

I've some work done, but I find the drawing/color routines of Xlib to be too very much complicated and slow for what I want to do.
[size="2"]I like the Walrus best.

This topic is closed to new replies.

Advertisement