prosperon/source/engine/yugine.h

29 lines
518 B
C
Raw Normal View History

#ifndef YUGINE_H
#define YUGINE_H
2024-02-23 16:05:30 -06:00
#include "script.h"
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);
void print_stacktrace();
2024-02-23 16:05:30 -06:00
void engine_start(JSValue fn); /* fn runs after the engine starts */
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();
double get_timescale();
void quit();
2022-12-29 04:26:21 -06:00
double apptime();
extern double renderMS;
extern double physMS;
extern double updateMS;
extern int editor_mode;
2023-03-10 13:13:48 -06:00
#endif