ngfx::MTLWindow
Inherits from ngfx::Window
Public Functions
Name | |
---|---|
virtual | ~MTLWindow() |
virtual bool | shouldClose() override |
virtual void | pollEvents() override |
Public Attributes
Name | |
---|---|
MTLSurface | mtlSurface |
Additional inherited members
Public Types inherited from ngfx::Window
Name | |
---|---|
enum | @2 { DISPLAY_WIDTH, DISPLAY_HEIGHT} |
Public Functions inherited from ngfx::Window
Name | |
---|---|
Window * | create(GraphicsContext * graphicsContext, const char * title, std::function< void(Window *thiz)> onWindowCreated, int w =DISPLAY_WIDTH, int h =DISPLAY_HEIGHT) |
virtual | ~Window() |
Public Attributes inherited from ngfx::Window
Name | |
---|---|
int | w |
int | h |
Surface * | surface |
std::function< void()> | onUpdate |
std::function< void()> | onPaint |
std::function< void(KeyCode code, InputAction action)> | onKey |
std::function< void(double xoffset, double yoffset)> | onScroll |
std::function< void(double x, double y)> | onCursorPos |
std::function< void(MouseButton button, InputAction action)> | onMouseButton |
Public Functions Documentation
function ~MTLWindow
inline virtual ~MTLWindow()
function shouldClose
virtual bool shouldClose() override
Reimplements: ngfx::Window::shouldClose
function pollEvents
virtual void pollEvents() override
Reimplements: ngfx::Window::pollEvents
Public Attributes Documentation
variable mtlSurface
MTLSurface mtlSurface;
Updated on 3 April 2021 at 20:21:51 PDT