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
|
/*
* sp/interface/context.hpp
*/
#ifndef SP_INTERFACE_CONTEXT_HPP
#define SP_INTERFACE_CONTEXT_HPP
#include <sp/interface/base.hpp>
extern "C"
{
SP_IMPORT int SP_CALLCONV SPContextOpen(HWND hwnd);
SP_IMPORT int SP_CALLCONV SPContextClose();
SP_IMPORT int SP_CALLCONV SPContextViewResize(int w, int h);
SP_IMPORT int SP_CALLCONV SPContextIsPDDIStatsEnabled();
SP_IMPORT int SP_CALLCONV SPContextSetIsPDDIStatsEnabled(int statsEnabled);
SP_IMPORT int SP_CALLCONV SPContextAdvance();
SP_IMPORT int SP_CALLCONV SPContextDisplay();
SP_IMPORT int SP_CALLCONV SPContextMouseDown(int button, int shift, int x, int y);
SP_IMPORT int SP_CALLCONV SPContextMouseMove(int button, int shift, int x, int y);
SP_IMPORT int SP_CALLCONV SPContextMouseUp(int button, int shift, int x, int y);
SP_IMPORT int SP_CALLCONV SPContextMouseWheel(int scroll);
SP_IMPORT float SP_CALLCONV SPSimulationGetFPS();
SP_IMPORT float SP_CALLCONV SPSimulationGetRate();
SP_IMPORT int SP_CALLCONV SPSimulationSetRate(float rate);
SP_IMPORT unsigned int SP_CALLCONV SPGetMemoryUsage();
SP_IMPORT int SP_CALLCONV SPContextGetCameraLock();
SP_IMPORT int SP_CALLCONV SPContextSetCameraLock(int cameraLock);
SP_IMPORT int SP_CALLCONV SPInventoryClear();
SP_IMPORT int SP_CALLCONV SPInventoryGetEntityCount();
SP_IMPORT int SP_CALLCONV SPInventoryGetEntityName(int index, char* name, int nameLen, char* type, int typeLen);
SP_IMPORT int SP_CALLCONV SPSetBackgroundColour( int r , int g , int b );
} // extern "C"
#endif // SP_INTERFACE_CONTEXT_HPP
|