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();
|
2022-12-22 16:58:06 -06:00
|
|
|
void set_timescale(float val);
|
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
|
|
|
|
2023-12-21 17:21:01 -06:00
|
|
|
void app_name(const char *name);
|
2023-06-28 11:35:41 -05:00
|
|
|
|
2022-12-29 04:26:21 -06:00
|
|
|
int frame_fps();
|
2023-08-31 17:23:24 -05:00
|
|
|
double get_timescale();
|
2022-12-29 04:26:21 -06:00
|
|
|
|
2023-10-30 17:41:32 -05:00
|
|
|
double apptime();
|
2023-08-31 13:00:33 -05:00
|
|
|
extern double renderMS;
|
|
|
|
extern double physMS;
|
|
|
|
extern double updateMS;
|
2023-09-19 12:35:12 -05:00
|
|
|
extern int editor_mode;
|
2023-03-10 13:13:48 -06:00
|
|
|
#endif
|