1

Topic: How to draw a circle by means of Cairo?

Actually not the circle is necessary to me, and to underline words in a sentence differently (two lines, wavy, a dash-dot red). Examples on sbcl for wayland interest.

2

Re: How to draw a circle by means of Cairo?

Hello, Ejnstok Fajr, you wrote: > actually not the circle is necessary To me, and to underline words in a sentence differently (two lines, wavy, a dash-dot red). > examples on sbcl for wayland Interest. And in what ? https://cairographics.org/tutorial/http … icdrawing/ EGLDisplay edpy; EGLConfig ecfg; EGLContext ectx; EGLSurface esrf;/* - Wayland - */struct wl_surface *wlsurface; struct wl_egl_window *wlwindow;/* - Cairo - */cairo_device_t *device; cairo_surface_t *surface; cairo_t *cr; wlsurface = wl_compositor_create_surface (wlcompositor); wlwindow = wl_egl_window_create (wlsurface, 320,240); esrf = eglCreateWindowSurface (edpy, ecfg, wlwindow, NULL); device = cairo_egl_device_create (edpy, ectx); surface = cairo_gl_surface_create_for_egl (device, esrf, 320,240); cr = cairo_create (surface); cairo_rectangle (cr, 0,0,320,240); cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_set_source_rgba (cr, 0,0,0,1); cairo_paint (cr); As on  the devil only knows https://github.com/rpav/cl-cairo2/blob/ … orial.lisp

3

Re: How to draw a circle by means of Cairo?

To me distinction between EGL and Cairo is not clear. Both that and another - API for drawing abstraction. What for a superfluous layer? We admit that EGL is engaged in creation of contexts and buffers, OpenGL draws, and Cairo turns. How to me to draw simultaneously in different flows (on different kernels of the CPU)? How to me thus to draw on the graphic coprocessor, instead of on the central processor? If at me on the videocard two graphic processors (chip) how to select on what to draw? Whether happens Xinerama for wayland and how it is called? Whether is able Cairo to work with Vulkan API? (And whether there is in it a sense) GTK + Scene Graph Kit, released on March 2017 as part of GTK + 3.90, has a Vulkan rendering path. If two graphic chips are allocated not on one videocard, and on different how to make one general desktop on all these monitors?

4

Re: How to draw a circle by means of Cairo?

Hello, Ejnstok Fajr, you wrote: > As to me to draw simultaneously in different flows (on different kernels of the CPU)? > As to me thus to draw on the graphic coprocessor, instead of on the central processor? > If at me on the videocard two graphic processors (chip) how to select on what to draw? What exactly is necessary for you? https://vulkan.lunarg.com/doc/sdk/1.0.6 … vices.html https://www.imgtec.com/blog/understandi … rendering/ https://devblogs.nvidia.com/egl-eye-ope … -x-server/

5

Re: How to draw a circle by means of Cairo?

_> What exactly is necessary for you? Under these links very interesting information, I esteem attentively. However a question as of all it to make one surface and not . For example if at me one workplace, on it stand three monitors (from four possible), which are controlled by two graphic processors (on two monitors each processor), processors work on one videocard. How to me to make so that the mouse passed from one monitor to another, windows were dragged etc.? The way is visible to me one is Xinerama, means any wayland, any acceleration from OpenGL (and that  strongly to suffer with switch-off XRandr by a way  source codes). It is very sad... It would be desirable to understand, whether there was an alternative for Wayland.

6

Re: How to draw a circle by means of Cairo?

Hello, Ejnstok Fajr, you wrote: > As to me to make so that the mouse passed from one monitor to another, windows were dragged etc.? The way is visible to me one is Xinerama, means any wayland, any acceleration from OpenGL (and that  strongly to suffer with switch-off XRandr by a way  source codes). It is very sad... > It would be desirable to understand, whether there was an alternative for Wayland. Can xdmx look to you? https://www.ibm.com/developerworks/ru/l … index.html

7

Re: How to draw a circle by means of Cairo?

_> Can xdmx look to you? "If Xinerama is enabled (e.g., with +xinerama on the command line), the clients see a single large screen." Xinerama deprecated in favor xrandr, i.e. lacks same as at my variant (necessity of cutting out xrandr)

8

Re: How to draw a circle by means of Cairo?

Hello, Ejnstok Fajr, you wrote: > "If Xinerama is enabled (e.g., with +xinerama on the command line), the clients see a single large screen." > Xinerama deprecated in favor xrandr, i.e. lacks same as at my variant (necessity of cutting out xrandr) Not so I understand than hinders you xrandr and what for it to cut