Scene render hook instance, which does the actual rendering for a viewport.
More...
#include <DM_SceneHook.h>
A Scene render hook has a parent viewport and a view type mask which determines which viewport types it will display in (eg. perspective, ortho, UV, all). The viewer_scope determines which viewer type it will appear in (Obj/Sop/Dop, or Lop).
virtual DM_SceneRenderHook::~DM_SceneRenderHook |
( |
| ) |
|
|
virtual |
const OP_Node* DM_SceneRenderHook::getCurrentLOP |
( |
| ) |
const |
Get the current LOP, the LOP that is displaying handles and in the parm dialog (LOP hook specific)
const OP_Node* DM_SceneRenderHook::getDisplayLOP |
( |
| ) |
const |
Get the currently displayed LOP (LOP hook specific)
int DM_SceneRenderHook::getID |
( |
| ) |
const |
|
inline |
Render method called when the rendering task is required. render() performs the rendering task for the hook, or returns false if if it cannot. The RE_Render contains the active GL context and the hook_data contains viewport-specific and hook-specific data.
For hooks that register with DM_HOOK_FRAMEBUFFER_PICK, this reports the selection back to the hook once it is complete. only picks for this hook are returned, and this may be an empty list.
Restrict hook to only certain Viewport Renderer versions This method allows you to restrict this hook to only operate in some of the viewport renderers (H11 - GL3). If the viewport is set to a a renderer and this method returns false, it will be skipped. The default action is to support all viewport renderers.
Definition at line 117 of file DM_SceneHook.h.
Viewport this scene render is attached to.
Definition at line 139 of file DM_SceneHook.h.
virtual void DM_SceneRenderHook::viewportClosed |
( |
| ) |
|
|
virtual |
Callback method when the viewport is no longer visible. Called when the viewport is temporarily closed (quad/single switch, pane switch). This gives the hook the opportunity to clean up expensive GL objects or caches.
The documentation for this class was generated from the following file: