Re: xshmcreatepixmap xcreatepixmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  The point of XShmCreatePixmap was to create pixmaps that could
be directly modified by the client (client can render directly into
the pixmap memory with the CPU) as well as allowing the X-server
to render into them.   This requires both SHM and that the server
be local.  There is no non-SHM equivalent behavior.  You either have
to go with a normal Pixmap and disallow direct access by the client
or move to rendering into an XImage and using XPutImage when you are
done.  The X-server would not be able to render into the XImage.

   People usually use XShmCreatePixmap when they want to mix
some rendering operations that the X-server can't do with some
that it can.  You'll need to understand what your app required
ShmPixmaps for in order to decide which implementation path to
take and which features you'll need to reimplement or do without.

   An app that required XShmCreatePixmap not only wouldn't work
without SHM, but wouldn't work when run from a remote machine even
if the server did support SHM.

			Mark.

On Sun, 4 Jul 2004, ANGELESCU Florin wrote:

> hi
> i am trying to port a program that use xshmcreatepixmap
> to a xserver withou shm support , i try to replace with xcreatepixamp , but
> now it doesnt draw anymore
> can someone give some hints / url with tutorials   ??
>
> thank you
>
> _______________________________________________
> XFree86 mailing list
> XFree86@xxxxxxxxxxx
> http://XFree86.Org/mailman/listinfo/xfree86
>
_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux