Module radiant_utils::loops [−][src]
Time controlled loops.
Structs
LoopState |
Passed to |
Functions
mainloop |
Main loop helper function. Provides callbacks for game state changes and rendering. Calls state_callback multiple times if the actual render_callback call interval exceeds the given interval. Both callbacks receive a LoopState object containing frame delta and fps data. |
renderloop |
Render loop helper function. Provides given callback with frame delta and fps data. This is a more simple alternative to the main loop helper function. |