ngfx::WWindow
Inherits from ngfx::D3DWindow, ngfx::Window
Public Functions
Name | |
---|---|
void | create(GraphicsContext * graphicsContext, const char * title, std::function< void(Window *thiz)> onWindowCreated, int w, int h) |
virtual bool | shouldClose() |
virtual void | pollEvents() |
virtual | ~WWindow() |
virtual void | destroySurface() |
Additional inherited members
Public Functions inherited from ngfx::D3DWindow
Name | |
---|---|
virtual | ~D3DWindow() |
Public Attributes inherited from ngfx::D3DWindow
Name | |
---|---|
D3DSurface | d3dSurface |
Public Types inherited from ngfx::Window
Name | |
---|---|
enum | @2 { DISPLAY_WIDTH, DISPLAY_HEIGHT} |
Public Functions inherited from ngfx::Window
Name | |
---|---|
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 create
void create(
GraphicsContext * graphicsContext,
const char * title,
std::function< void(Window *thiz)> onWindowCreated,
int w,
int h
)
function shouldClose
virtual bool shouldClose()
Reimplements: ngfx::Window::shouldClose
function pollEvents
virtual void pollEvents()
Reimplements: ngfx::Window::pollEvents
function ~WWindow
virtual ~WWindow()
function destroySurface
virtual void destroySurface()
Updated on 3 April 2021 at 20:21:51 PDT