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 ();
};