Replies: 1 comment 6 replies
-
Hi, I think it would be better to make it a separate app, as rendering HTML could slow down the compositor. I assume you're asking this because you simply want to create/draw UI elements from the compositor. Louvre uses OpenGL for rendering, so you have a lot of flexibility. If you need to use a CPU rasterizer toolkit (like an HTML rendering tool), you can create an LTexture from the rendered HTML pixel data and update it as necessary to later render it on screen. I do this for rendering text in the examples. Then to simplify rendering, instead of creating your own GLES shaders or using LPainter, you could use LScene and the various LView subtypes. For instance, LTextureView lets you specify a source texture rectangle, a destination rectangle on the screen, and any custom transformations needed (like rotation or flipping), clipping, etc. You can think of LView as the base class for creating UI components. |
Beta Was this translation helpful? Give feedback.
-
Hello!
since i meet the great server side decoration of louvre-view and smoothness of it. i have new idea to render an application entirely in server side using read a html syntax like and render it.
i just have some question :
is it possible with current server side decorations (
button (click to run a linux command),
text,
img,
) to make somthing like
is it a bad idea ?
does it impact performance ?
any suggestion for implementation ?
Beta Was this translation helpful? Give feedback.
All reactions