#raylib + lvgl

4 messages ยท Page 1 of 1 (latest)

tame pebble
#

I've made a thin middleware so that a lvgl display is rendered as a texture in raylib.
I'm sharing my efforts in the hope someone else that is interested can contribute so it is usable

mouse movement and left click works

lvgl's widgets demo can be built with the example project

lvgl version is v9.2
raylib version is 5.0 (I've tried current master, 2024-09-20, but there are glitches in the texture)

middleware: https://github.com/gabrielssanches/lv_raylib
example project: https://github.com/gabrielssanches/raylib-lvgl-demo-widgets

the examples compiles for linux and wasm, but wasm does not renders the texture.
I have not tested any other platforms

magic marlin
#

Looks great! ๐Ÿ‘๐Ÿ˜„

honest ore
#

Fantastic โค๏ธ

tame pebble
#

made it work with wasm now https://gabrielssanches.github.io/raylib-lvgl-demo-widgets/

it had an issue with the glTexture2D call, it does not accepts GL_RGBA + GL_BGRA combination
The error is :
texImage2D: invalid format

I've set both to GL_RGBA and it works, but colors are switched ๐Ÿ˜„