inanevin / LinaEngine

Lina Engine is an open-source , modular, tiny and fast C++ game engine, aimed to develop 3D desktop games.
MIT License
843 stars 50 forks source link

Some Questions... #51

Closed ridhwandll closed 3 years ago

ridhwandll commented 3 years ago

I was seeing this repo and found out a very interesting thing about the window... The title bar of the window is totally changed. It doesn't look like the normal, typical window title bar in WindowsOS. I have seen that this project uses GLFW. Can I see the code which does the styling ⬇️ image Any help regarding this styling and how it is done is appreciated. You can also tell me the file name in which this style-ing is done. Thanks In Advance! 😄

inanevin commented 3 years ago

I was seeing this repo and found out a very interesting thing about the window... The title bar of the window is totally changed. It doesn't look like the normal, typical window title bar in WindowsOS. I have seen that this project uses GLFW. Can I see the code which does the styling ⬇️ image Any help regarding this styling and how it is done is appreciated. You can also tell me the file name in which this style-ing is done. Thanks In Advance! 😄

Hey, here is the Window class preparing & handling the decoration of the GLFW window so that we won't have the default Windows titlebar and buttons.

And here is the editor implementation responsible for the custom window rendering.