fbshaderlayout.h File Reference

FBShader layout file. More...

#include <kaydaradef.h>
#include <fbsdk/fbshader.h>
#include <fbcontrols/fbcontrols.h>

Go to the source code of this file.

Classes

class   FBShaderLayout
  Shader layout class. More...

Defines

#define  FBSDK_DLL   K_DLLIMPORT
  Be sure that FBSDK_DLL is defined only once...
#define  FBRegisterShaderLayout(ClassName, UniqueNameStr, IconFilename)
  Register a Shader layout class.
#define  FBShaderLayoutDeclare(ClassName, Parent)
  Shader layout declaration.
#define  FBShaderLayoutImplementation(ThisComponent)   FBClassImplementation( ThisComponent )
  Shader layout implementation.

Functions

  __FB_FORWARD (FBShaderLayout)
  FB_DEFINE_COMPONENT (FBSDK_DLL, ShaderLayout)

Detailed Description

FBShader layout file.

Definition in file fbshaderlayout.h.


Define Documentation

#define FBSDK_DLL   K_DLLIMPORT

Be sure that FBSDK_DLL is defined only once...

Definition at line 48 of file fbshaderlayout.h.

#define FBRegisterShaderLayout (   ClassName,
  UniqueNameStr,
  IconFilename 
)
Value:
HIObject RegisterShaderLayout##ClassName( HIObject /*pOwner*/,char * /*pName*/,void *pData) \
    {\
        ClassName *Class = new ClassName( (HFBShader)FBGetFBComponent((HIObject)pData) ); \
        Class->mAllocated = true; \
        if (Class->FBCreate()) { \
            return Class->GetHIObject(); \
        } else { \
            delete Class; \
            return NULL; \
        } \
    } \
    FBLibraryModule( ClassName )    \
    {   \
        FBRegisterObject( ClassName,"renderer/usershader/ui",UniqueNameStr,UniqueNameStr" Shader Layout",RegisterShaderLayout##ClassName, true, IconFilename ); \
    }

Register a Shader layout class.

Parameters:
ClassName Name of Shader layout class.
UniqueNameStr Unique name of class.
IconFilename Filename of associated icon.

Definition at line 67 of file fbshaderlayout.h.

#define FBShaderLayoutDeclare (   ClassName,
  Parent 
)
Value:
FBClassDeclare( ClassName,Parent ); \
  public: \
    ClassName(HFBShader pShader):Parent(pShader) { FBClassInit; } \
  private:

Shader layout declaration.

Parameters:
ClassName Name of Shader layout class.
Parent Parent of Shader layout class.

Definition at line 88 of file fbshaderlayout.h.

#define FBShaderLayoutImplementation (   ThisComponent )    FBClassImplementation( ThisComponent )

Shader layout implementation.

Parameters:
ThisComponent Name of Shader layout class to implement.

Definition at line 97 of file fbshaderlayout.h.


Function Documentation

FB_DEFINE_COMPONENT ( FBSDK_DLL  ,
ShaderLayout   
)