HL bindings

This commit is contained in:
Joshua Granick
2018-06-15 00:22:24 -07:00
parent 9fdfc84aac
commit 9e9ec78a3b
19 changed files with 678 additions and 498 deletions

View File

@@ -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>

View File

@@ -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;
};