-
Notifications
You must be signed in to change notification settings - Fork 0
/
Callbacks.h
71 lines (65 loc) · 1.87 KB
/
Callbacks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//
// platform.h
// aleph
//
// Created by Christoph Leimbrock on 06/07/16.
// Copyright © 2016 chris. All rights reserved.
//
#ifndef platform_h
#define platform_h
#if defined(__cplusplus)
extern "C" {
#endif
char *getDataDir(void);
char* getLocalDataDir();
void helperBringUpHUD();
void setOpenGLView(void* view);
void setSDLWindowData(void* data);
int helperNewGame();
void helperSaveGame();
void helperHideHUD();
void helperBeginTeleportOut();
void helperTeleportInLevel();
void helperEpilog();
void helperGameFinished();
void helperHandleLoadGame();
void helperDoPreferences();
void printGLError(const char* message);
void printGLErrorL(const char* message, int line);
void pumpEvents();
void startProgress ( int t );
void progressCallback ( int d );
void stopProgress();
void helperPlayerKilled();
int helperAlwaysPlayIntro();
int helperAutocenter();
void helperGetMouseDelta(float *dx, float *dy);
void helperSwitchWeapons(int weapon);
void helperQuit();
void helperNetwork();
void helperEndReplay();
void helperSetPreferences(int notifySoundManager);
void helperHandleSaveFilm();
void helperHandleLoadFilm();
void helperNewProjectile ( short projectile_index, short which_weapon, short which_trigger );
void helperProjectileHit ( short projectile_index, int damage );
void helperProjectileKill ( short projectile_index );
short helperGetEntryLevelNumber();
void helperPickedUp ( short itemType );
float helperGamma();
float helperPauseAlpha();
int helperOpenGLWidth();
int helperOpenGLHeight();
void setOpenGLESVersion(int version);
int getOpenGLESVersion();
int helperRunningOniPad(void);
int helperRetinaDisplay();
#pragma mark -
void helperLoadingStart(size_t total);
void helperLoadingProgress(size_t delta);
void helperLoadingFinish();
void helperCheckCurrentContext();
#if defined(__cplusplus)
}
#endif
#endif /* platform_h */