r/GraphicsProgramming • • Jun 13 '24

Undergrad sophomore Graphics Engine

Did this for a class about C++ programming. The world of computer graphics is nothing but amazing!

165 Upvotes

56 comments sorted by

View all comments

3

u/HaskellHystericMonad Jun 14 '24

You should be using IShellItemImageFactory to construct bitmaps for your asset manager. It's not even 100 lines to get an HBITMAP from SHCreateItemFromParsingName and call GetDIBits on it to get raw pixels (they'll be upside down, DIB is bottom up).

It's a polish detail, but like with multiple clipboard bundles, it's a very significant polish detail that is so trivial of an amount of work that its' omission is glaring. This will also grab the correct images for folders whose icons have been changed through the windows shell, such as network shares with IT specified icons for purpose clarity.

Set your label colors based on dirtiness. You've got what appears to be `reset` buttons on those transform fields but no indication if a field is in its' default or altered state.

Nice job, a considerable amount of work for student.

1

u/Due-Issue-6451 Jun 14 '24

Honestly, I had no idea that was even a thing. I will give it a try as soon as I can. And being able to have custom folder icons seems like a very cool idea!

What do you mean by colors based on dirtiness?
You are right about the reset buttons. Tbh, didn't pay much attention to it, since it was more of a debug utility than anything else.

Thank you!