Ejemplo n.º 1
0
CNodeSubtract::CNodeSubtract( CNodeView *p ) : BaseClass( "Subtract", p )
{
	GenerateJacks_Input( 2 );
	GenerateJacks_Output( 1 );

	SetJackFlags_Input( 0, HLSLJACKFLAGS_F1_TO_F4 );
	SetJackFlags_Input( 1, HLSLJACKFLAGS_F1_TO_F4 );
	SetJackFlags_Output( 0, HLSLJACKFLAGS_F1_TO_F4 );

	GetJack_In( 0 )->SetName( "A" );
	GetJack_In( 1 )->SetName( "B" );
}
CNodeUtility_Assign::CNodeUtility_Assign( CNodeView *p ) : BaseClass( "Assign", p )
{
	m_flMinSizeX = NODEDEFSIZE_SMALL;
	m_flMinSizeY = NODEDEFSIZE_SMALL;
	m_flMinSizePREVIEW_X = NODEDEFSIZE_SMALL;

	GenerateJacks_Input( 2 );
	GenerateJacks_Output( 1 );

	SetJackFlags_Input( 0, HLSLJACKFLAGS_ALL );
	SetJackFlags_Input( 1, HLSLJACKFLAGS_ALL );
	SetJackFlags_Output( 0, HLSLJACKFLAGS_ALL );
}
Ejemplo n.º 3
0
CNodeDot::CNodeDot( CNodeView *p ) : BaseClass( "Dotproduct", p )
{
	GenerateJacks_Input( 2 );
	GenerateJacks_Output( 1 );

	SetJackFlags_Input( 0, HLSLJACKFLAGS_F1_TO_F4 );
	SetJackFlags_Input( 1, HLSLJACKFLAGS_F1_TO_F4 );
	//SetJackFlags_Output( 0, HLSLJACKFLAGS_F1_TO_F4 );
	LockJackOutput_Flags( 0, HLSLVAR_FLOAT1 );

	GetJack_In( 0 )->SetName( "A" );
	GetJack_In( 1 )->SetName( "B" );
}
CNodeMultiply::CNodeMultiply( CNodeView *p ) : BaseClass( "Multiply", p )
{
	m_bMatrixRotation = false;

	GenerateJacks_Input( 2 );
	GenerateJacks_Output( 1 );

	SetJackFlags_Input( 0, HLSLJACKFLAGS_ALL );
	SetJackFlags_Input( 1, HLSLJACKFLAGS_ALL );
	SetJackFlags_Output( 0, HLSLJACKFLAGS_ALL );

	GetJack_In( 0 )->SetName( "A" );
	GetJack_In( 1 )->SetName( "B" );
}
CNodeLerp::CNodeLerp( CNodeView *p ) : BaseClass( "Lerp", p )
{
	GenerateJacks_Input( 3 );
	GenerateJacks_Output( 1 );

	SetJackFlags_Input( 0, HLSLJACKFLAGS_F1_TO_F4 );
	SetJackFlags_Input( 1, HLSLJACKFLAGS_F1_TO_F4 );
	SetJackFlags_Input( 2, HLSLJACKFLAGS_F1_TO_F4 );
	//LockJackInput_Flags( 2, HLSLVAR_FLOAT1, "frac" );
	SetJackFlags_Output( 0, HLSLJACKFLAGS_F1_TO_F4 );

	GetJack_In( 0 )->SetName( "A" );
	GetJack_In( 1 )->SetName( "B" );
	GetJack_In( 2 )->SetName( "frac" );
}
Ejemplo n.º 6
0
CNodeInvert::CNodeInvert( CNodeView *p ) : BaseClass( "Invert", p )
{
	GenerateJacks_Input( 1 );
	GenerateJacks_Output( 1 );

	SetJackFlags_Input( 0, HLSLJACKFLAGS_F1_TO_F4 );
	SetJackFlags_Output( 0, HLSLJACKFLAGS_F1_TO_F4 );

	GetJack_In( 0 )->SetName( "In" );
}
Ejemplo n.º 7
0
CNodeClip::CNodeClip( CNodeView *p ) : BaseClass( "Clip", p )
{
	m_flMinSizeX = NODEDEFSIZE_SMALL;
	m_flMinSizeY = 0;
	m_flMinSizePREVIEW_X = NODEDEFSIZE_SMALL;

	GenerateJacks_Input( 1 );
	GenerateJacks_Output( 1 );

	SetJackFlags_Input( 0, HLSLJACKFLAGS_ALL );
	SetJackFlags_Output( 0, HLSLJACKFLAGS_ALL );
}
Ejemplo n.º 8
0
CNodeBreak::CNodeBreak( CNodeView *p ) : BaseClass( "Break", p )
{
	m_flMinSizeX = NODEDEFSIZE_SMALL;
	m_flMinSizeY = 0;
	m_flMinSizePREVIEW_X = NODEDEFSIZE_SMALL;
	m_bAllInputsRequired = false;

	GenerateJacks_Input( 1 );
	GenerateJacks_Output( 1 );

	SetJackFlags_Input( 0, HLSLJACKFLAGS_ALL );
	SetJackFlags_Output( 0, HLSLJACKFLAGS_ALL );
}