libRocket using EGL, without X?

Discussion of features and help with problems encountered while using libRocket

libRocket using EGL, without X?

Postby RobertP on Tue Apr 07, 2015 2:28 pm

Are there any examples of using libRocket with EGL instead of X11?

I want to use libRocket on an embedded device in which we render directly to the Linux framebuffer, without using X.

Has this been done with libRocket before?
RobertP
 
Posts: 8
Joined: Tue Apr 07, 2015 2:22 pm

Re: libRocket using EGL, without X?

Postby RobertP on Wed Apr 22, 2015 7:05 pm

I was able to solve my problem by approaching it from the opposite direction.

Instead of trying to port the invader example to use EGL, without X, I started with the EGL-based program we already have, and inserted libRocket from scratch into that existing program, by following the "Getting Started" guide in the documentation, implementing all the required interfaces, etc.

With this approach, it turned out that making libRocket work with my existing EGL setup was pretty straightforward. The difficult part was implementing the render interfaces in the programmable pipeline of OpenGL ES 2.0, as the invader example uses the fixed function pipeline of OpenGL 1.x, and I'm new to OpenGL altogether.
RobertP
 
Posts: 8
Joined: Tue Apr 07, 2015 2:22 pm


Return to Using libRocket


cron