yasu - devlog #2
Finally, I’ve finished implementing the abstraction layer, so now I’m free from using C libraries in C++ 🥹 Oh wait….. there is glfw here…….
Anyway, there isn’t any visible progress, so that’s why you can see that awesome screenshot (hope staff doesn’t complain 🙏). The codebase in its logic is practically the same, but now it’s packed into a pretty class and I added error handling for everything, so now I can catch every possible exception. Also, I (tried to) get rid of all possible memory leaks and yeah, that’s all.
Now it’s time for the UI. I repeat myself, but I’m going to use GLFW with ImGui. If someone is curious how I’m going to display the screenshots, here’s the explanation:
- I make one big screenshot with all monitors (that’s how
portalswork) - Then I separate and crop it, so each monitor has it’s own
- I convert each screenshot to raw pixel buffer
- For each monitor, I create new window with GLFW and I load the screenshot from that buffer
And later I’ll add things like cropping etc. but that’s the part of UI, so I will be talking about it in the future devlogs!
See ya 
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.