ngfx::MTLApplication
Inherits from ngfx::BaseApplication, ngfx::InputListener
Public Functions
| Name | |
|---|---|
| MTLApplication(const std::string & appName, int w =Window::DISPLAY_WIDTH, int h =Window::DISPLAY_HEIGHT, bool enableDepthStencil =false, bool offscreen =false) | |
| virtual | ~MTLApplication() |
| virtual void | init() override |
| virtual void | run() override |
Protected Functions
| Name | |
|---|---|
| virtual void | paint() override |
Additional inherited members
Public Functions inherited from ngfx::BaseApplication
| Name | |
|---|---|
| BaseApplication(const std::string & appName, int w =Window::DISPLAY_WIDTH, int h =Window::DISPLAY_HEIGHT, bool enableDepthStencil =false, bool offscreen =false) | |
| virtual | ~BaseApplication() |
| virtual void | createWindow() |
| virtual void | recordCommandBuffers() |
| virtual void | close() |
| virtual void | onInit() |
| virtual void | onRecordCommandBuffer(CommandBuffer * commandBuffer) =0 |
| virtual void | onUpdate() |
| virtual void | onPaint() |
| virtual void | drawFrame() |
Public Attributes inherited from ngfx::BaseApplication
| Name | |
|---|---|
| std::unique_ptr< Graphics > | graphics |
| std::unique_ptr< Window > | window |
| std::unique_ptr< GraphicsContext > | graphicsContext |
| int | w |
| int | h |
| bool | enableDepthStencil |
| bool | offscreen |
| bool | persistentCommandBuffers |
Protected Attributes inherited from ngfx::BaseApplication
| Name | |
|---|---|
| bool | initOnce |
| std::unique_ptr< ngfx::Texture > | outputTexture |
| std::unique_ptr< ngfx::Texture > | depthTexture |
| std::unique_ptr< Framebuffer > | outputFramebuffer |
Public Functions inherited from ngfx::InputListener
| Name | |
|---|---|
| virtual void | onKey(KeyCode code, InputAction action) |
| virtual void | onScroll(double xoffset, double yoffset) |
| virtual void | onCursorPos(double x, double y) |
| virtual void | onMouseButton(MouseButton button, InputAction action) |
Public Functions Documentation
function MTLApplication
MTLApplication(
const std::string & appName,
int w =Window::DISPLAY_WIDTH,
int h =Window::DISPLAY_HEIGHT,
bool enableDepthStencil =false,
bool offscreen =false
)
function ~MTLApplication
inline virtual ~MTLApplication()
function init
virtual void init() override
Reimplements: ngfx::BaseApplication::init
function run
virtual void run() override
Reimplements: ngfx::BaseApplication::run
Protected Functions Documentation
function paint
virtual void paint() override
Reimplements: ngfx::BaseApplication::paint
Updated on 3 April 2021 at 20:21:51 PDT