Hi,
I trying to write a simple HTML control, i need to draw table lines, CEGUI's Renderer can draw lines, but depend to texture. if don't depend to texture, how to solve?
How to draw line and box?
Moderators: CEGUI MVP, CEGUI Team
Re: How to draw line and box?
PeakGao wrote:Hi,
I trying to write a simple HTML control, i need to draw table lines, CEGUI's Renderer can draw lines, but depend to texture. if don't depend to texture, how to solve?
Perhaps it may be better to create a special looknfeel/imageset for your "HTML" widget sets?
Rackle wrote:I've been thinking about such a widget. My initial thinking would be to use ScrollablePane and add various StaticText, StaticImage, and MulticolumnList children. In your case the MulticolumnList would draw its own lines. Hope that gives you some ideas.
hehe.., I think that the idea is too simple and the MulticolumnList can not use instead of the HTML table. the HTML table is very flexible, but the MulticolumnList is not.
ps: In games, the simple HTML window is very useful. the more windows can be designed by the simple HTML window.
Last edited by PeakGao on Wed Aug 02, 2006 10:29, edited 1 time in total.
Hi PeakGao,
You could always "render" your entire HTML to your own texture and then pass this over to CEGUI to display. Not sure if this is a good idea or not mind you Hmm.. you might even be able to use a library such as antigrain (http://www.antigrain.com/) to do the rendering to a block of memory, but it could be a lot of work (?).
Cheers.
You could always "render" your entire HTML to your own texture and then pass this over to CEGUI to display. Not sure if this is a good idea or not mind you Hmm.. you might even be able to use a library such as antigrain (http://www.antigrain.com/) to do the rendering to a block of memory, but it could be a lot of work (?).
Cheers.
Return to “Bug Reports, Suggestions, Feature Requests”
Who is online
Users browsing this forum: No registered users and 14 guests