Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Allegro 5 + libRocket sample

This thread is locked; no one can reply to it. rss feed Print
Allegro 5 + libRocket sample
Peter Wang
Member #23
April 2000

I'm not sure I'm convinced yet, but it turned out to be fairly straightforward to hook up libRocket with Allegro 5. Sample program attached.

{"name":"603293","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/9\/6992930de0fdc0747961b3878293a330.png","w":640,"h":480,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/9\/6992930de0fdc0747961b3878293a330"}603293

kazzmir
Member #1,786
December 2001
avatar

Thats cool. Does libRocket work best with programs that use opengl?

I haven't looked at the rocket documentation much, but can you explain what RenderGeometry is doing in your example program? What are those vertices?

Peter Wang
Member #23
April 2000

It should work with D3D just fine. I didn't test.

Rocket sends the things it wants to draw, and RenderGeometry is responsible for getting that onto the screen.

Trent Gamblin
Member #261
April 2000
avatar

I wonder how it works within a real game... is it fast enough? Can you have elements randomly dispersed on the screen? Etc.

Go to: