[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: Beginner Questions About XCB - xcb_alloc_color is too slow
From:       Ilya Anfimov <ilan () tzirechnoy ! com>
Date:       2021-02-23 11:09:49
Message-ID: 20210223110945.GA3183022 () azor ! tzirechnoy ! ru
[Download RAW message or body]

On Sat, Feb 20, 2021 at 06:37:38PM -0800, Mark Solomonik wrote:
>    Hello,

 Godd day.

[skipped]

>  Is this an appropriate way to set the color? Is there a more efficient way to do so?

 Well, you have mostly good answers to this question.
 (I personally disagree with the one that recommended RENDER).
 Yes,  you should generally find r,g,b bitmasks and then just put
pixel values. AllocColor is practically useless on TrueColor  vi-
suals, and currently there is almost no other types.


> 
> 
>  Slightly unrelated question: as someone completely new to Xorg and Linux graphics in general,
>  how do you deal with the lack of documentation for XCB?

 The documentation on protocol is an "X Window System Protocol"

https://www.x.org/releases/X11R7.5/doc/x11proto/proto.pdf

  Xlib and xcb are just C language bindings for the protocol.

> 
> 
>  Thanks,
> 
>  Mark

> _______________________________________________
> xorg@lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: https://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic