turbobadger icon indicating copy to clipboard operation
turbobadger copied to clipboard

Glut dependency because of TBSystem::RescheduleTimer

Open Cleroth opened this issue 9 years ago • 6 comments

turbobadger currently doesn't work on Windows without glut due to TBSystem::RescheduleTimer. The implementation for this on windows is empty and commented out. I uncommented out and it seems to work just fine. Is TBSystem::RescheduleTimer really required?

Cleroth avatar Feb 06 '16 17:02 Cleroth

The comment is mentioning glut but the demo actually use glfw now (the implementation is in port_glfw.cpp). You don't need it if you're doing a game (with a game loop), but if you're doing an event driven application (that should be idle unless there are stuff to do) you'll need it.

The method should move out from TBSystem to avoid this confusion, but for now, just defining it somewhere is a quick fix.

fruxo avatar Feb 07 '16 13:02 fruxo

So I can't use the TB events at all, or just avoid PostMessageOnTime?

Cleroth avatar Feb 07 '16 14:02 Cleroth

You can still use TB events, including PostMessageOnTime. The messages will be handled when you call ProcessMessages which you'll do often in the game loop. If there's nothing to do, ProcessMessages will not do anything. See integration.txt if you haven't already.

fruxo avatar Feb 07 '16 14:02 fruxo

Oh, I understand now. Thanks.

Cleroth avatar Feb 07 '16 14:02 Cleroth

@Cleroth maybe you could close this issue now?

tesch1 avatar Sep 07 '16 11:09 tesch1

@tesch1 The problem isn't solved though. If you're building turbobadger on Windows you'll get the unresolved symbol without knowing how to fix it.

Cleroth avatar Aug 26 '17 18:08 Cleroth