How to round off corners of a widget?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Andrey01
Posts: 57
Joined: Mon Jul 27, 2020 9:08 pm

How to round off corners of a widget?

Post by Andrey01 »

Let there is a button. How to round off me its corners?
CuteAlien
Admin
Posts: 9647
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to round off corners of a widget?

Post by CuteAlien »

For buttons you can also set bitmaps, enable alpha channel and disable border drawing.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Andrey01
Posts: 57
Joined: Mon Jul 27, 2020 9:08 pm

Re: How to round off corners of a widget?

Post by Andrey01 »

@Seven: thanks! I will look at that addon for Irrlicht!

@CuteAlien: I don`t know how to set bitmaps, do you mean simple containers?
CuteAlien
Admin
Posts: 9647
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to round off corners of a widget?

Post by CuteAlien »

IGUIButton has setImage and setPressedImage functions (and some more options if you use Irrlicht svn trunk version).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply