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