Ofc i could render a button as image of something and if mouse gets klicked while the mouse point intersects with the button, the button event toggles, but isn´t there a easier way?
Ofc i could render a button as image of something and if mouse gets klicked while the mouse point intersects with the button, the button event toggles, but isn´t there a easier way?
That seems pretty easy to me honestly. Checking if the mouse cursor is inside a rectangle takes maybe a couple lines of code. If you only need a couple buttons rather than a full-blown GUI (like Microsoft Word or Visual Studio or something) then it probably is easier to implement them yourself. Even adding a mouseover state is pretty simple. I've already done 3-state textured buttons (is that what you call them?) for my program without any real difficulty.
I only started running into issues when I tried making something a bit more complicated like a slider.