-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plClient does querying of the possible display modes in it’s constructor. For now - using a singleton as a way to set a global display helper before this process starts. Keeping display helpers in the plPipeline family. It’s possible it belongs at a lower level alongside hsG3DDeviceMode in since display helpers are platform and not render specific.
- Loading branch information
1 parent
192d029
commit d0acae6
Showing
7 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include <Metal/Metal.hpp> | ||
#include <QuartzCore/QuartzCore.h> | ||
|
||
#include "plPipeline.h" | ||
#include "plPipeline/hsG3DDeviceSelector.h" | ||
|
||
class plMacDisplayHelper: public plDisplayHelper | ||
{ | ||
|
@@ -61,11 +61,13 @@ class plMacDisplayHelper: public plDisplayHelper | |
void SetCurrentScreen(NSScreen* screen); | ||
|
||
plDisplayMode DefaultDisplayMode() override { return fDefaultDisplayMode; }; | ||
void GetSupportedDisplayModes(std::vector<plDisplayMode> *res, int ColorDepth = 32) override; | ||
void GetSupportedDisplayModes(std::vector<plDisplayMode> *res, int ColorDepth = 32) const override; | ||
std::vector<plDisplayMode> GetDisplayModes() const override { return fDisplayModes; } | ||
|
||
MTL::Device* RenderDevice() { return fRenderDevice; } | ||
|
||
plMacDisplayHelper(); | ||
plMacDisplayHelper(hsWindowHndl window); | ||
~plMacDisplayHelper(); | ||
private: | ||
CGDirectDisplayID fCurrentDisplay; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,9 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include "plgDispatch.h" | ||
#include "hsResMgr.h" | ||
#include "plPipeResReq.h" | ||
#include "plPipeline.h" | ||
|
||
plDisplayHelper* plDisplayHelper::_currentDisplayHelper = nullptr; | ||
hsResMgr* hsgResMgr::fResMgr = nullptr; | ||
|
||
plDispatchBase* plgDispatch::Dispatch() | ||
|