Custom CSS rendering features

Help with integrating libRocket into your engine and game

Custom CSS rendering features

Postby DarthCoder on Sat Jul 12, 2014 12:01 am

Hi, I'm working on integrating libRocket into my custom built engine, and I love libRocket so far. The only problem is that I would really like to have CSS gradient and border-radius features, as well as a few animation extensions. I'm trying to find the places where I might write these sort of extensions myself, but I'm not finding much. Could anyone familiar with libRocket point me in the right direction to implement these sorts of features? If I get them working I'll submit them as patches and hopefully they can make it into the core.
DarthCoder
 
Posts: 8
Joined: Sun Jun 16, 2013 3:13 pm

Re: Custom CSS rendering features

Postby AFineTapestry on Sat Jul 12, 2014 5:55 pm

I'm not entirely sure since I am only just starting to understand the code myself.

I believe you'd want to implement a decorator however. Something like this: https://github.com/libRocket/libRocket/blob/master/Source/Core/DecoratorTiled.cpp
AFineTapestry
Rocket Engineer
Rocket Engineer
 
Posts: 11
Joined: Fri Jun 13, 2014 8:55 am

Re: Custom CSS rendering features

Postby DarthCoder on Sat Jul 12, 2014 11:45 pm

Oh, so the decorators allow custom rendering. That should be good enough for my needs. Thanks.
DarthCoder
 
Posts: 8
Joined: Sun Jun 16, 2013 3:13 pm


Return to Engine Integration


cron