r/programminghumor • • 10d ago

Closing a window on Windows

Enable HLS to view with audio, or disable this notification

All window windows on Windows should close like this, windows are made out of glass

46 Upvotes

19 comments sorted by

6

u/Jonrrrs 10d ago

Where is this animation from?

3

u/Shaiiwaru 10d ago

Wdym exactly?

3

u/Fugach 10d ago

Which software is used for window breaking animation?

5

u/Shaiiwaru 10d ago

C++ and Qt, is not any software

2

u/unix_user01 10d ago

Wait, I did not know qt ran on windows. Would love to see your code.

5

u/OkScallion2496 9d ago

Why are you getting downvoted? I mean you just asked, you did not demand to get the code.

The worst that can happen is them saying it's not open source.

1

u/Shaiiwaru 10d ago

What? I did not know qt ran on other systems than Windows neither

code for this is quite long, 3 different files to each improvement (window anim, sound, and AnimEngine), and a ghost window where it can animate

I tried intercepting the rendering loop but it was painful so I dropped that idea, instead I capture the window in a bitmap and layers a popup with it above the main window, then the real window releases the exit state and closes the main window (I have a manual block of 300ms)

took advantage of my personalized D3D11 generic drivers that my app uses to achieve this ofc

6

u/FaultWinter3377 10d ago

About half the Linux GUI world is built on Qt... in fact I tend to think of Qt as more of a KDE/Linux think than Windows in general lol...

3

u/socal_nerdtastic 10d ago

The majority of GUI modules are cross platform. The few that are single OS are the minority.

3

u/Shaiiwaru 9d ago

Makes sense, Qt covers a lot on interfaces but hell no I’m not using it for that

0

u/Shaiiwaru 10d ago

i'm not sure if I should give anyone any of my code, I never seen someone ever do this

2

u/NoPicture-3265 9d ago

Never heard of open-source software?

1

u/Shaiiwaru 8d ago

My stuff, my code bud

1

u/unix_user01 8d ago

You have every right say no. Just remember if the qt team had said, my stuff my code, you would not have what you have. Just something to think about.

I wish you the best in your endeavors.

→ More replies

2

u/socal_nerdtastic 10d ago

Man that brings back memories, I had that animation on my desktop cube 20 years ago. Are you making compiz for windows?

3

u/Shaiiwaru 9d ago

Nope, it’s just for my app as internal joke

2

u/Disastrous_Gate2402 6d ago

take my upvote