Using DirectX to code a non-.NET game

First on-topic thread in this forum! :love:

But anyway. I’ve been taught to use a while(1) loop for the main loop for a DirectX game on Windows. The game would be in a window (not full screen). All operations would be done one frame by one frame in that loop. I’m thinking this is a really dumb idea. Is there a way to use event callback handlers for this? I’d be using DirectInput and Direct3D as input and drawing methods. I can’t find any event handlers for DirectX :frowning:

// edit - I’d be doing this in C++.