Fixes for vdynamic return types

This commit is contained in:
Joshua Granick
2019-03-14 12:34:08 -07:00
parent a482c14d5c
commit 3b9ca3a770
11 changed files with 499 additions and 215 deletions

View File

@@ -9,36 +9,22 @@
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);
void* Value ();
hl_type* t;
int height;
PixelFormat pixelFormat;
int refreshRate;
int width;
private:
DisplayMode ();
DisplayMode (value DisplayMode);
DisplayMode (int width, int height, PixelFormat pixelFormat, int refreshRate);
HL_DisplayMode* _mode;
void CopyFrom (DisplayMode* other);
void* Value ();
};

View File

@@ -32,7 +32,7 @@ namespace lime {
static std::wstring* GetDeviceModel ();
static std::wstring* GetDeviceVendor ();
static std::wstring* GetDirectory (SystemDirectory type, const char* company, const char* title);
static value GetDisplay (int id);
static void* GetDisplay (bool useCFFIValue, int id);
#ifdef IPHONE
static std::wstring* GetIOSDirectory (SystemDirectory type);
static bool GetIOSTablet ();