I'm designing a GUI for our CEGUI-powered application, and i've came across various issues related to the textures. Here's one.
Controls like the editbox and combobox resize their texture to the height of the font. If you're using a theme with pixel-art-style textures (1 pixel borders) this becomes rather nasty, because the borders get resized and become blurred.
I know this is defined inside the theme dll (WindowsLook, TaharezLook). I solved this by using a 'box'-texture (TopLeft, Top, TopRight, Left, Middle, ..., Bottom, BottomRight) instead of the default way of doing it (Left, Middle, Right).
However, this affects the performance of the application. No horrible fps rates, but you can notice the difference between my theme demo and the taharez demo.
I suppose this is the right way to do it? Just making sure.
Boxed textures bad perf
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Boxed textures bad perf
Your approach is pretty much correct if you do not want stretching. There will be a performance cost, since you are drawing nine images per widget instead of three - this is to be expected.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 8 guests