Various twekas
This commit is contained in:
@@ -229,8 +229,6 @@ bool MacPlatformTools::OnPostProcess(CookingData& data)
|
|||||||
|
|
||||||
// TODO: sign binaries
|
// TODO: sign binaries
|
||||||
|
|
||||||
// TODO: expose event to inject custom post-processing before app packaging (eg. third-party plugins)
|
|
||||||
|
|
||||||
// Package application
|
// Package application
|
||||||
const auto buildSettings = BuildSettings::Get();
|
const auto buildSettings = BuildSettings::Get();
|
||||||
if (buildSettings->SkipPackaging)
|
if (buildSettings->SkipPackaging)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// [Window]
|
// [WindowBase]
|
||||||
void* GetNativePtr() const override;
|
void* GetNativePtr() const override;
|
||||||
void Show() override;
|
void Show() override;
|
||||||
void Hide() override;
|
void Hide() override;
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
CPUInfo Cpu;
|
CPUInfo Cpu;
|
||||||
String UserLocale;
|
String UserLocale;
|
||||||
double SecondsPerCycle;
|
double SecondsPerCycle;
|
||||||
|
NSAutoreleasePool* AutoreleasePool = nullptr;
|
||||||
|
|
||||||
float ApplePlatform::ScreenScale = 1.0f;
|
float ApplePlatform::ScreenScale = 1.0f;
|
||||||
|
|
||||||
@@ -268,11 +269,16 @@ bool ApplePlatform::Init()
|
|||||||
OnPlatformUserAdd(New<User>(username));
|
OnPlatformUserAdd(New<User>(username));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AutoreleasePool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ApplePlatform::Tick()
|
void ApplePlatform::Tick()
|
||||||
{
|
{
|
||||||
|
// TODO: do it once every X fames
|
||||||
|
[AutoreleasePool drain];
|
||||||
|
AutoreleasePool = [[NSAutoreleasePool alloc] init];
|
||||||
}
|
}
|
||||||
|
|
||||||
void ApplePlatform::BeforeExit()
|
void ApplePlatform::BeforeExit()
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ class FLAXENGINE_API GDKWindow : public WindowBase
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
Windows::HWND _handle;
|
Windows::HWND _handle;
|
||||||
Float2 _clientSize;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@@ -77,7 +76,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// [Window]
|
// [WindowBase]
|
||||||
void* GetNativePtr() const override;
|
void* GetNativePtr() const override;
|
||||||
void Show() override;
|
void Show() override;
|
||||||
void Hide() override;
|
void Hide() override;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// [Window]
|
// [WindowBase]
|
||||||
void* GetNativePtr() const override;
|
void* GetNativePtr() const override;
|
||||||
void Show() override;
|
void Show() override;
|
||||||
void Hide() override;
|
void Hide() override;
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ class FLAXENGINE_API MacWindow : public WindowBase
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Float2 _clientSize;
|
|
||||||
void* _window;
|
void* _window;
|
||||||
bool _isMouseOver = false;
|
bool _isMouseOver = false;
|
||||||
|
|
||||||
@@ -28,7 +27,7 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// [Window]
|
// [WindowBase]
|
||||||
void* GetNativePtr() const override;
|
void* GetNativePtr() const override;
|
||||||
void Show() override;
|
void Show() override;
|
||||||
void Hide() override;
|
void Hide() override;
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// [Window]
|
// [WindowBase]
|
||||||
void* GetNativePtr() const override
|
void* GetNativePtr() const override
|
||||||
{
|
{
|
||||||
return _impl->GetHandle();
|
return _impl->GetHandle();
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ private:
|
|||||||
bool _clipCursorSet = false;
|
bool _clipCursorSet = false;
|
||||||
bool _isDuringMaximize = false;
|
bool _isDuringMaximize = false;
|
||||||
Windows::HANDLE _monitor = nullptr;
|
Windows::HANDLE _monitor = nullptr;
|
||||||
Float2 _clientSize;
|
|
||||||
Windows::LONG _clipCursorRect[4];
|
Windows::LONG _clipCursorRect[4];
|
||||||
int32 _regionWidth = 0, _regionHeight = 0;
|
int32 _regionWidth = 0, _regionHeight = 0;
|
||||||
|
|
||||||
@@ -95,7 +94,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// [Window]
|
// [WindowBase]
|
||||||
void* GetNativePtr() const override;
|
void* GetNativePtr() const override;
|
||||||
void Show() override;
|
void Show() override;
|
||||||
void Hide() override;
|
void Hide() override;
|
||||||
|
|||||||
Reference in New Issue
Block a user