Skip to content

Added MacOS_Window#23

Merged
vsg-dev merged 1 commit into
vsg-dev:masterfrom
tomhog:topic-macos
Dec 19, 2018
Merged

Added MacOS_Window#23
vsg-dev merged 1 commit into
vsg-dev:masterfrom
tomhog:topic-macos

Conversation

@tomhog
Copy link
Copy Markdown
Contributor

@tomhog tomhog commented Dec 19, 2018

Description

Added native macOS window support. Moved the initialisation of device, physical device etc into vsg::Window. Traits is now a vsg::Object and a refptr is trained in Window.

Take extra note of the inclusion of finalBackWidth, finalBackingHeight. Platforms that support HDPI screens can have a different coord space for windows and the actual backing/pixel/frame buffers that we render into. So on macOS we can request a window of 800x600. With no hdpi we get buffer of 800x600 pixels. With HDPI (retian screens etc), we get a window of 800x600 but the buffer is 1600x1200.

Not sure what to call it at this point but it's important so we can set the correct viewport. I've updated vsgdraw to use the traits finalBackingWidth/height when setting the viewport.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Example creating windows will now need to pass a vsg::ref_ptrWindows::Traits object to the Window create function

How Has This Been Tested?

Built and run on macOS 10.13.5. using XCode 9.4.1

@vsg-dev vsg-dev merged commit 0aaae5d into vsg-dev:master Dec 19, 2018
@rainergericke rainergericke mentioned this pull request Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants