How to efficiently render resizable GUI elements in DirectX?

Posted by PolGraphic on Game Development See other posts from Game Development or by PolGraphic
Published on 2012-12-13T04:58:55Z Indexed on 2012/12/13 5:18 UTC
Read the original article Hit count: 318

Filed under:
|
|
|

I wonder what would be most efficient way to render the GUI elements.

When we're talking about constant-size elements (that can still be moving), the textures' atlas seems to be good.

But what with the resizeable elements?

Let's say the panel (with textured borders)?

Is there any better way than just render 9 rectangles with textures on them (I guess one texture and different textures coordinates for left-top corner, border, middle etc. used in shader)?

© Game Development or respective owner

Related posts about c++

Related posts about hlsl