You are browsing as a guest. Sign up (or log in) to start making projects!

3h 57m 39s logged

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:

  1. I make one big screenshot with all monitors (that’s how portals work)
  2. Then I separate and crop it, so each monitor has it’s own
  3. I convert each screenshot to raw pixel buffer
  4. 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 :bye:

0
28

Comments 0

No comments yet. Be the first!