Subversion Repositories eduke32

Rev

Rev 8096 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8094 hendricks2 1
#ifndef VOIDWRAP_STEAM_H_
2
#define VOIDWRAP_STEAM_H_
3
 
4
#include "voidwrap.h"
5
 
6
#if defined VOIDWRAP_ISEXPORTING || !defined VOIDWRAP_RUNTIMELINK
7
 
8
#ifdef __cplusplus
9
extern "C" {
10
#endif
11
 
12
VOIDWRAP_API bool Voidwrap_Steam_Init(void);
13
VOIDWRAP_API void Voidwrap_Steam_Shutdown(void);
14
VOIDWRAP_API void Voidwrap_Steam_RunCallbacks(void);
15
 
8096 hendricks2 16
VOIDWRAP_API void Voidwrap_Steam_UnlockAchievement(char const * id);
17
VOIDWRAP_API void Voidwrap_Steam_SetStat(char const * id, int32_t value);
8112 terminx 18
VOIDWRAP_API void Voidwrap_Steam_ResetStats(void);
8096 hendricks2 19
 
8094 hendricks2 20
#ifdef VWDEBUG
8096 hendricks2 21
VOIDWRAP_API void Voidwrap_Steam_SetCallback_PrintDebug(VW_VOID_CONSTCHARPTR function);
8094 hendricks2 22
#endif
23
 
24
#ifdef VWSCREENSHOT
25
VOIDWRAP_API bool Voidwrap_Steam_SendScreenshot(char * filepath, int32_t width, int32_t height);
8096 hendricks2 26
VOIDWRAP_API void Voidwrap_Steam_SetCallback_ScreenshotRequested(VW_VOID function);
8094 hendricks2 27
#if 0
8096 hendricks2 28
VOIDWRAP_API void Voidwrap_Steam_SetCallback_ScreenshotReady(VW_VOID_INT32 function);
8094 hendricks2 29
#endif
30
#endif
31
 
32
#ifdef VWCONTROLLER
33
VOIDWRAP_API int32_t Voidwrap_Steam_GetConnectedControllers(void);
34
#endif
35
 
36
#ifdef __cplusplus
37
}
38
#endif
39
 
40
#else
41
 
42
static VW_BOOL Voidwrap_Steam_Init;
43
static VW_VOID Voidwrap_Steam_Shutdown;
44
static VW_VOID Voidwrap_Steam_RunCallbacks;
8112 terminx 45
static VW_VOID Voidwrap_Steam_ResetStats;
8094 hendricks2 46
 
8112 terminx 47
static VW_VOID_CONSTCHARPTR       Voidwrap_Steam_UnlockAchievement;
8096 hendricks2 48
static VW_VOID_CONSTCHARPTR_INT32 Voidwrap_Steam_SetStat;
49
 
8094 hendricks2 50
#ifdef VWDEBUG
8096 hendricks2 51
static VW_SETCALLBACK_VOID_CONSTCHARPTR Voidwrap_Steam_SetCallback_PrintDebug;
8094 hendricks2 52
#endif
53
 
54
#ifdef VWSCREENSHOT
55
static VW_BOOL_SCREENSHOT Voidwrap_Steam_SendScreenshot;
8096 hendricks2 56
static VW_SETCALLBACK_VOID Voidwrap_Steam_SetCallback_ScreenshotRequested;
8094 hendricks2 57
#if 0
8096 hendricks2 58
static VW_SETCALLBACK_VOID_INT32 Voidwrap_Steam_SetCallback_ScreenshotReady;
8094 hendricks2 59
#endif
60
#endif
61
 
62
#ifdef VWCONTROLLER
63
static VW_INT32 Voidwrap_Steam_GetConnectedControllers;
64
#endif
65
 
66
#endif
67
 
68
#endif