miscellaneous/texture_template/ortexture_template_pytexture.h
#ifndef __ORTEXTURE_TEMPLATE_PYTEXTURE_H__
#define __ORTEXTURE_TEMPLATE_PYTEXTURE_H__
void ORLayeredTextureCustom_Init();
inline ORLayeredTextureCustom* CreateORLayeredTextureCustom(const char* pName)
{
ORLayeredTextureCustom* lTexture = new ORLayeredTextureCustom(pName);
lTexture->FBCreate();
return lTexture;
}
class ORLayeredTextureCustom_Wrapper : public FBLayeredTexture_Wrapper
{
protected:
ORLayeredTextureCustom* mORLayeredTextureCustom;
public:
ORLayeredTextureCustom_Wrapper( FBComponent* pFBComponent )
: FBLayeredTexture_Wrapper( pFBComponent )
{
mORLayeredTextureCustom = (ORLayeredTextureCustom*)pFBComponent;
}
ORLayeredTextureCustom_Wrapper( const char* pName )
: FBLayeredTexture_Wrapper( CreateORLayeredTextureCustom(pName) )
{
mORLayeredTextureCustom = (ORLayeredTextureCustom*)mFBComponent;
}
virtual ~ORLayeredTextureCustom_Wrapper( )
{
}
DECLARE_DEFINE_ORSDK_PROPERTY_PYTHON_CUSTOM_TYPE_ACCESS( ORLayeredTextureCustom, AuxLayer, FBColorAndAlpha );
};
#endif