Using Rocket to generate texture.

Discussion of features and help with problems encountered while using libRocket

Using Rocket to generate texture.

Postby slunceford on Fri Sep 18, 2015 8:58 pm

I am trying to render a webpage into a memory buffer.
I will then transfer the memory buffer to the display.
I am very new to rocket. Can anyone point me in the right
direction in the documentation of by example
slunceford
 
Posts: 6
Joined: Fri Sep 18, 2015 8:52 pm

Re: Using Rocket to generate texture.

Postby wheybags on Sat Sep 19, 2015 1:08 pm

What rendering backend are you using? In case you're not aware, you typically subclass RenderInterface class to use whatever rendering your game engine is using (example: https://github.com/libRocket/libRocket/ ... ceSDL2.cpp )
If you just implement your RenderInterface to draw to buffer, that should be all you need.
wheybags
Rocket Engineer
Rocket Engineer
 
Posts: 13
Joined: Fri Jun 13, 2014 10:16 am

Re: Using Rocket to generate texture.

Postby slunceford on Mon Sep 21, 2015 1:53 pm

Ok this looks to be a good start, my end goal is to use rocket to grab a "screenshot" of a url and convert it to a texture.
slunceford
 
Posts: 6
Joined: Fri Sep 18, 2015 8:52 pm

Re: Using Rocket to generate texture.

Postby slunceford on Mon Sep 21, 2015 1:55 pm

Also no game creation here, don't work on anything that fun. The renderer we use is Open GL
slunceford
 
Posts: 6
Joined: Fri Sep 18, 2015 8:52 pm


Return to Using libRocket