-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds MATERIALX_BUILD_IOS option that enables MaterialX Library compil…
…e on iOS platform.
- Loading branch information
Morteza
committed
Aug 7, 2023
1 parent
c34a106
commit a5417f0
Showing
8 changed files
with
94 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// Copyright Contributors to the MaterialX Project | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#if defined(__APPLE__) | ||
|
||
#ifdef TARGET_OS_IOS | ||
|
||
#include <MaterialXRenderHw/SimpleWindow.h> | ||
|
||
MATERIALX_NAMESPACE_BEGIN | ||
|
||
SimpleWindow::SimpleWindow() : | ||
_width(0), | ||
_height(0) | ||
{ | ||
// Give a unique identifier to this window. | ||
static unsigned int windowCount = 1; | ||
_id = windowCount; | ||
windowCount++; | ||
} | ||
|
||
bool SimpleWindow::initialize(const char* title, | ||
unsigned int width, unsigned int height, | ||
void* /*applicationShell*/) | ||
{ | ||
_windowWrapper = WindowWrapper::create(nullptr); | ||
return true; | ||
} | ||
|
||
SimpleWindow::~SimpleWindow() | ||
{ | ||
} | ||
|
||
MATERIALX_NAMESPACE_END | ||
|
||
#endif | ||
|
||
#endif |
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