The Nebula Device 3: Frame::FrameShader Class Reference

The Nebula Device 3

Frame::FrameShader Class Reference

#include <frameshader.h>

Inheritance diagram for Frame::FrameShader:

Core::RefCounted

Detailed Description

A FrameShader controls the rendering of an entire frame, and is configured by an XML file.

(C) 2007 Radon Labs GmbH

Public Member Functions

 FrameShader ()
 constructor
virtual ~FrameShader ()
 destructor
void Discard ()
 discard the frame shader
void Render ()
 render the frame shader from the given camera
void SetName (const Resources::ResourceId &id)
 set the name of the frame shader
const Resources::ResourceIdGetName () const
 get the name of the frame shader
void SetMainRenderTarget (const Ptr< CoreGraphics::RenderTarget > &rt)
 set the main render target
const Ptr< CoreGraphics::RenderTarget > & GetMainRenderTarget () const
 get the main render target
void AddRenderTarget (const Resources::ResourceId &resId, const Ptr< CoreGraphics::RenderTarget > &rt)
 add a render target to the frame
SizeT GetNumRenderTargets () const
 get number of render targets
const Ptr< CoreGraphics::RenderTarget > & GetRenderTargetByIndex (IndexT i) const
 get render target by index
bool HasRenderTarget (const Resources::ResourceId &resId) const
 return true if render target exists by name
const Ptr< CoreGraphics::RenderTarget > & GetRenderTargetByName (const Resources::ResourceId &resId) const
 get render target by name
void AddMultipleRenderTarget (const Resources::ResourceId &resId, const Ptr< CoreGraphics::MultipleRenderTarget > &rt)
 add a mutliple render target to the frame
SizeT GetNumMultipleRenderTargets () const
 get number of mutliple render targets
const Ptr< CoreGraphics::MultipleRenderTarget > & GetMultipleRenderTargetByIndex (IndexT i) const
 get mutliple render target by index
bool HasMultipleRenderTarget (const Resources::ResourceId &resId) const
 return true if mutliple render target exists by name
const Ptr< CoreGraphics::MultipleRenderTarget > & GetMultipleRenderTargetByName (const Resources::ResourceId &resId) const
 get mutliple render target by name
void AddTexture (const Resources::ResourceId &resId, const Ptr< Resources::ManagedTexture > &t)
 add a texture to the frame
SizeT GetNumTextures () const
 get number of textures
const Ptr< Resources::ManagedTexture > & GetTextureByIndex (IndexT i) const
 get texture by index
bool HasTexture (const Resources::ResourceId &resId) const
 return true if texture exists by name
const Ptr< Resources::ManagedTexture > & GetTextureByName (const Resources::ResourceId &resId) const
 get texture by name
void AddFramePassBase (const Ptr< FramePassBase > &framePass)
 add a frame pass to the frame shader
SizeT GetNumFramePassBases () const
 get number of frame passes
const Ptr< FramePassBase > & GetFramePassBaseByIndex (IndexT i) const
 get frame pass by index
bool HasFramePassBase (const Resources::ResourceId &resId) const
 return true if names pass exists
const Ptr< FramePassBase > & GetFramePassBaseByName (const Resources::ResourceId &resId) const
 get frame pass by name
int GetRefCount () const
 get the current refcount
void AddRef ()
 increment refcount by one
void Release ()
 decrement refcount and destroy object if refcount is zero
bool IsInstanceOf (const Rtti &rtti) const
 return true if this object is instance of given class
bool IsInstanceOf (const Util::String &className) const
 return true if this object is instance of given class by string
bool IsInstanceOf (const Util::FourCC &classFourCC) const
 return true if this object is instance of given class by fourcc
bool IsA (const Rtti &rtti) const
 return true if this object is instance of given class, or a derived class
bool IsA (const Util::String &rttiName) const
 return true if this object is instance of given class, or a derived class, by string
bool IsA (const Util::FourCC &rttiFourCC) const
 return true if this object is instance of given class, or a derived class, by fourcc
const Util::StringGetClassName () const
 get the class name
Util::FourCC GetClassFourCC () const
 get the class FourCC code

Static Public Member Functions

static void DumpRefCountingLeaks ()
 dump refcounting leaks, call at end of application (NEBULA3_DEBUG builds only!)

Member Function Documentation

int Core::RefCounted::GetRefCount (  )  const [inline, inherited]

get the current refcount

Return the current refcount of the object.

void Core::RefCounted::AddRef (  )  [inline, inherited]

increment refcount by one

Increment the refcount of the object.

void Core::RefCounted::Release (  )  [inline, inherited]

decrement refcount and destroy object if refcount is zero

Decrement the refcount and destroy object if refcount is zero.

const Util::String & Core::RefCounted::GetClassName (  )  const [inline, inherited]

get the class name

Get the class name of the object.

Util::FourCC Core::RefCounted::GetClassFourCC (  )  const [inline, inherited]

get the class FourCC code

Get the class FourCC of the object.

void Core::RefCounted::DumpRefCountingLeaks (  )  [static, inherited]

dump refcounting leaks, call at end of application (NEBULA3_DEBUG builds only!)

This method should be called as the very last before an application exits.