PixelLightAPI  .
Public Types | Protected Member Functions
PLScene::SNMMeshUpdate Class Reference

Mesh scene node modifier which performs frequent mesh updates. More...

#include <SNMMeshUpdate.h>

Inheritance diagram for PLScene::SNMMeshUpdate:
Inheritance graph
[legend]

List of all members.

Public Types

enum  EFlags { UpdateUnseen = 1<<2 }
 Flags (SceneNodeModifier flags extension) More...

Protected Member Functions

virtual PLS_API void OnActivate (bool bActivate) override
 Called when the scene node modifier has been activated or deactivated.

Detailed Description

Mesh scene node modifier which performs frequent mesh updates.

Note:
  • Usually, there should be only once instance of this scene node modifier per scene node to avoid multiple mesh updates per frame (performance!)

Member Enumeration Documentation

Flags (SceneNodeModifier flags extension)

Enumerator:
UpdateUnseen 

Do also perform an update if the owner scene node is currently not seen

Reimplemented from PLScene::SceneNodeModifier.


Member Function Documentation

virtual PLS_API void PLScene::SNMMeshUpdate::OnActivate ( bool  bActivate) [override, protected, virtual]

Called when the scene node modifier has been activated or deactivated.

Parameters:
[in]bActivate'true' if the scene node modifier is now active, else 'false'
Note:
  • The scene node "Inactive"-flag as well as the "Frozen"-flag are taken into account
  • 'bActivate' will be 'true' if the scene node modifier AND the owner scene node AND it's parent scene container (recursive!) are active
  • 'bActivate' will be 'false' if the scene node modifier OR the owner scene node OR it's parent scene container (recursive!) is inactive
  • The default implementation is empty

Reimplemented from PLScene::SceneNodeModifier.


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:41
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported