2022-12-22 03:50:40 -06:00
|
|
|
#ifndef YUGINE_H
|
|
|
|
#define YUGINE_H
|
|
|
|
|
2024-02-23 16:05:30 -06:00
|
|
|
#include "script.h"
|
|
|
|
|
2022-12-22 03:50:40 -06:00
|
|
|
int sim_playing();
|
|
|
|
int sim_paused();
|
|
|
|
void sim_start();
|
|
|
|
void sim_pause();
|
|
|
|
void sim_stop();
|
|
|
|
void sim_step();
|
2023-03-10 13:13:48 -06:00
|
|
|
int phys_stepping();
|
2023-04-24 17:22:18 -05:00
|
|
|
void print_stacktrace();
|
2024-02-23 16:05:30 -06:00
|
|
|
void engine_start(JSValue fn); /* fn runs after the engine starts */
|
2022-12-22 03:50:40 -06:00
|
|
|
|
2022-12-29 04:26:21 -06:00
|
|
|
int frame_fps();
|
2024-03-11 15:11:39 -05:00
|
|
|
void quit();
|
2022-12-29 04:26:21 -06:00
|
|
|
|
2023-10-30 17:41:32 -05:00
|
|
|
double apptime();
|
2024-03-14 14:10:06 -05:00
|
|
|
extern double timescale;
|
2023-08-31 13:00:33 -05:00
|
|
|
extern double renderMS;
|
|
|
|
extern double physMS;
|
|
|
|
extern double updateMS;
|
2023-03-10 13:13:48 -06:00
|
|
|
#endif
|