NvGLDrawCallbacks Class Reference
Callbacks for rendering GL in a VK app (only supported on NV HW). More...
#include <NvSampleAppVK.h>
Public Member Functions | |
virtual bool | skipVKDraw () |
Indicates whether the app wants to turn off VK rendering (per-frame). | |
virtual void | initGLResources (NvAppContextGL *gl)=0 |
Called for the app to initialize its GL resources. | |
virtual void | drawGL (NvAppContextGL *gl)=0 |
Callback to draw the GL rendering. |
Detailed Description
Callbacks for rendering GL in a VK app (only supported on NV HW).Member Function Documentation
virtual void NvGLDrawCallbacks::drawGL | ( | NvAppContextGL * | gl | ) | [pure virtual] |
Callback to draw the GL rendering.
- Parameters:
-
[in] gl the GL app context to use to render
virtual void NvGLDrawCallbacks::initGLResources | ( | NvAppContextGL * | gl | ) | [pure virtual] |
Called for the app to initialize its GL resources.
- Parameters:
-
[in] gl the GL app context to use for loading rendering data
virtual bool NvGLDrawCallbacks::skipVKDraw | ( | ) | [inline, virtual] |
Indicates whether the app wants to turn off VK rendering (per-frame).
- Returns:
- should return true if VK rendering (draw) should be skipped, false if both GL and VK rendering are needed
The documentation for this class was generated from the following file: