NiScreenFillingRenderView

来源:互联网 发布:单片机控制舵机 编辑:程序博客网 时间:2024/06/15 18:39
 

NiScreenFillingRenderView

: public NiRenderView

<NiScreenFillingRenderView.h>

Description

这个类是包含screen-filling NiMeshScreenElements 的render view,它最重要的用处就是绘制全屏效果 和 将一个渲染target上渲染一个单独的纹理。

虚函数

virtual void SetCameraData(const NiRect<float>& kViewport)

Overridden from NiRenderView. This function simply callsSetScreenSpaceCameraData on the renderer.

virtual void CalculatePVGeometry()

Overridden from NiRenderView. This function first updates the property and effect states for the screen-fillingNiMeshScreenElements object, if necessary. It then adds the screen-filling quad to the potentially visible geometry array.

virtual void AttachProperty(NiProperty* pkProperty) = 0

virtual void DetachProperty(NiProperty* pkProperty) = 0

virtual void DetachAllProperties() = 0

virtual NiProperty* GetProperty(int iType) const = 0

virtual NiPropertyPtr RemoveProperty(int iType) = 0

These functions allow the properties on the screen-filling quad to be manipulated.UpdateProperties is called, if necessary, in theCalculatePVGeometry function.

virtual NiRenderObject& GetScreenFillingQuad() const = 0

This function returns a reference to the screen-filling quad geometry object. This is primarily so that materials and shaders can be modified on the object.

Supported Member Functions

void AttachEffect(NiDynamicEffect* pkEffect)

void DetachEffect(NiDynamicEffect* pkEffect)

void DetachAllEffects()

These functions allow dynamic effects to be associated with the screen-filling quad.UpdateEffects is called, if necessary, in the CalculatePVGeometry function.