6#ifndef MATERIALX_SIMPLEWINDOW_H
7#define MATERIALX_SIMPLEWINDOW_H
12#include <MaterialXRenderHw/WindowWrapper.h>
14MATERIALX_NAMESPACE_BEGIN
17using SimpleWindowPtr = std::shared_ptr<class SimpleWindow>;
33 bool initialize(
const char* title,
unsigned int width,
unsigned int height,
void* applicationShell);
38 return _windowWrapper;
56 return _windowWrapper && _windowWrapper->isValid();
64 WindowWrapperPtr _windowWrapper;
75 char _windowClassName[128];
79MATERIALX_NAMESPACE_END
Library-wide includes and types.
Macros for declaring imported and exported symbols.
A platform-independent window class.
Definition: SimpleWindow.h:24
bool isValid() const
Check for validity.
Definition: SimpleWindow.h:54
WindowWrapperPtr getWindowWrapper()
Return our platform-specific resource wrapper.
Definition: SimpleWindow.h:36
unsigned int width() const
Return width of window.
Definition: SimpleWindow.h:42
virtual ~SimpleWindow()
Default destructor.
bool initialize(const char *title, unsigned int width, unsigned int height, void *applicationShell)
Window initialization.
unsigned int height() const
Return height of window.
Definition: SimpleWindow.h:48
static SimpleWindowPtr create()
Static instance create function.
Definition: SimpleWindow.h:27