🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Advertisement

Latest glfw Activity

@Alberth 

“did you consider the impact of not disabling the mouse while debugging?”

Yes, this is what I am doing now to be able to debug, however in my windowed app this means I can not turn (e.g) left that much (when the mouse leaves the window), so this is not the best solution but this way I …

27,946 views
Advertisement
FishEye Lens distortion (bug?)

Two suggestions:

  • The Wikipedia page on fisheye distortion lists several principled distortion types, actually adopted in real lenses, that have a realistic appearance and interesting properties. You'll need further sources for a good treatment of how they work.
  • You could start from a reference pictur…
5,329 views

It should be precise enougth to detect what element is udner the mouse. How is your matrix constructed, is it a projection or orthogonal matrix?

If you initialized a projection matrix then you need to transform the coords of your 2D stuff into orthogonal window coords before you can use them. Then u…

3,091 views

The problem that occures here is that the event loop is flooded with OS specific events that tells the Window that it's position has changed. If you are on Windows for example you will always stay in the

while(true)
{
    if(PeekMessage)
    {
        TranslateMessage;
        DispatchMessage;
    }…
5,914 views
Advertisement
Advertisement