Stop thinking in abstractions, and you will quickly find the spaghetti stops. You're overthinking the problem massively, and blowing it out of scope entirely.
2 weeks ago
Anonymous
lack of abstractions is why cnile code is always shitty spaghetti
2 weeks ago
Anonymous
hello, bruce. how's the child porn collection going?
IQfy is really this moronic and they really don't understand that GUI is just two triangles that you draw other rectangles into, without applying perpective transform to them
>GUI is just two triangles that you draw other rectangles into
lmao this anon is so moronic he doesn't understand that triangles are just lines you connect 3 of them to FORM one idiot
that probably sounded very smart in your short head but I have to remind you that indeed, GPU's rasterize using triangles as primitives, now kindly frick off because you're too braindead to use this knowledge to make anything useful.
OpenGL
GLFW
Draw texture quads on the screen
check if the player clicks and where he clicked.
If he clicked at the same screen position as your texture quad, do X.
OpenGL
Lots of tears.
homie why you struggling GUIs are just event listeners, graphics, and windows stacked onto each other
>b-b-but
man shut yo ass up and go code it
skill and a small amount of determination.
old UIs like this were usually 100% homemade.
don't really need frameworks for such a simple thing.
>event listeners
nah bro. just write a really basic immediate mode gui wtf
>thinks he's invented the silver bullet of UIs
>it's still spaghetti
Stop thinking in abstractions, and you will quickly find the spaghetti stops. You're overthinking the problem massively, and blowing it out of scope entirely.
lack of abstractions is why cnile code is always shitty spaghetti
hello, bruce. how's the child porn collection going?
A for loop.
This.
If you are stuck in this step you are ngmi.
>nig speak
opinion discarded
homosexual
Black person
IQfy is really this moronic and they really don't understand that GUI is just two triangles that you draw other rectangles into, without applying perpective transform to them
>GUI is just two triangles that you draw other rectangles into
lmao this anon is so moronic he doesn't understand that triangles are just lines you connect 3 of them to FORM one idiot
that probably sounded very smart in your short head but I have to remind you that indeed, GPU's rasterize using triangles as primitives, now kindly frick off because you're too braindead to use this knowledge to make anything useful.
autist
SDL
This or RayLib
seconds per frame
IQfy is not tech support but I'm feeling charitable:
Dear imgui.
bitblt
Qt is themeable.
A framebuffer.
OpenGL
GLFW
Draw texture quads on the screen
check if the player clicks and where he clicked.
If he clicked at the same screen position as your texture quad, do X.
but why not just Qt with a old-school skin? You time wasting homies need to find a job ASAP
>using Qt in a game
wtf is wrong with you?
My menus always have game breaking bugs but here is my approach
1. Implement Dirty Rect
2. Keep a stack of MenuClass
push menus on it
pop menus from it
When menus are pushed/popped redraw the rect
3. Collision detection, mouse click in menu
4. State machine for keyboard menus
>OpenGL
>Direct3D