HL bindings
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
#define HL_NAME(n) hl_##n
|
||||
#include <hl.h>
|
||||
|
||||
struct hl_varray : varray {};
|
||||
struct hl_vstring : vstring {};
|
||||
|
||||
#undef hl_aptr
|
||||
#define hl_aptr(a,t) ((t*)(((hl_varray*)(a))+1))
|
||||
|
||||
#include <hx/CFFIPrime.h>
|
||||
|
||||
|
||||
|
||||
@@ -9,21 +9,37 @@
|
||||
namespace lime {
|
||||
|
||||
|
||||
struct HL_DisplayMode {
|
||||
|
||||
hl_type* t;
|
||||
int height;
|
||||
PixelFormat pixelFormat;
|
||||
int refreshRate;
|
||||
int width;
|
||||
|
||||
};
|
||||
|
||||
|
||||
class DisplayMode {
|
||||
|
||||
public:
|
||||
|
||||
DisplayMode ();
|
||||
DisplayMode (value DisplayMode);
|
||||
DisplayMode (HL_DisplayMode* DisplayMode);
|
||||
DisplayMode (int width, int height, PixelFormat pixelFormat, int refreshRate);
|
||||
|
||||
value Value ();
|
||||
void* Value ();
|
||||
|
||||
int height;
|
||||
PixelFormat pixelFormat;
|
||||
int refreshRate;
|
||||
int width;
|
||||
|
||||
private:
|
||||
|
||||
HL_DisplayMode* _mode;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user