Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions

vl::Sector::VisibilityCallback Class Reference

A callback object called each time a Sector becomes visible through a Portal. More...

#include <SceneManagerPortals.hpp>

Inheritance diagram for vl::Sector::VisibilityCallback:
vl::Object

List of all members.

Public Member Functions

virtual void operator() (const Camera *cam, SceneManagerPortals *psm, Sector *s, Portal *p)=0
 Callback.

Detailed Description

A callback object called each time a Sector becomes visible through a Portal.

Note: a callback can be called multiple times with the same Sector argument if a Sector is discovered multiple times through different portals. Using callbacks can be very useful to perform special actions upon sector discovery, like enabling/disabling animations, enabling/disabling a ActorKdTree scene manager or a Terrain scene manager to render the external environment etc.

Definition at line 119 of file SceneManagerPortals.hpp.


Member Function Documentation

virtual void vl::Sector::VisibilityCallback::operator() ( const Camera cam,
SceneManagerPortals psm,
Sector s,
Portal p 
) [pure virtual]

Callback.

Note: a callback can be called multiple times with the same Sector argument if a Sector is discovered multiple times through different portals.

Parameters:
camThe current Camera.
psmThe SceneManagerPortals that generated the callback.
sThe Sector that has become visible.
pThe Portal used to enter the Sector. It is set to NULL if s is the starting Sector (the Sector in which the camera is).

The documentation for this class was generated from the following file:

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:11.
Permission is granted to use this page to write and publish articles regarding Visualization Library.