2022-07-01 17:05:17 +02:00
|
|
|
#ifndef _MAIN_H
|
|
|
|
#define _MAIN_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2022-06-28 13:00:03 +02:00
|
|
|
extern short angle;
|
|
|
|
extern short xOffset;
|
|
|
|
extern short yOffset;
|
|
|
|
|
|
|
|
extern short index2;
|
|
|
|
extern unsigned short element;
|
|
|
|
|
2022-06-28 23:40:19 +02:00
|
|
|
extern int debugType;
|
|
|
|
|
2022-06-28 13:00:03 +02:00
|
|
|
int mod(int a, int b);
|
|
|
|
float sin(int angle);
|
|
|
|
float cos(int angle);
|
2022-07-01 17:05:17 +02:00
|
|
|
|
2022-07-02 21:20:17 +02:00
|
|
|
// TODO: Move into a separate file
|
|
|
|
void fillSky(unsigned short yMin, unsigned short yMax);
|
|
|
|
|
2022-07-17 00:36:08 +02:00
|
|
|
// Profiling
|
|
|
|
extern int timeUpdate;
|
|
|
|
extern int time3D;
|
|
|
|
extern int timeLogic;
|
|
|
|
extern int timeLogic1;
|
|
|
|
extern int timeLogic2;
|
|
|
|
extern int timeLogic3;
|
|
|
|
extern int timePhysics;
|
|
|
|
extern int timeSprites;
|
|
|
|
extern int timeKartSprite;
|
|
|
|
extern int timeDebugHud;
|
|
|
|
|
2022-07-21 17:14:02 +02:00
|
|
|
extern bool frameCapEnabled;
|
|
|
|
|
2022-07-01 17:05:17 +02:00
|
|
|
#endif // _MAIN_H
|