예제 #1
0
//=============================================================================
// CMeshField生成
//=============================================================================
CMeshField *CMeshField::Create(LPDIRECT3DDEVICE9 pDevice,int nType, D3DXVECTOR3 pos, D3DXVECTOR3 rot,
									int nNumBlockX, int nNumBlockZ, float fSizeBlockX, float fSizeBlockZ)
{
	CMeshField *pMeshField;

	pMeshField = new CMeshField;
	pMeshField->Init(pDevice,nType, pos, rot, nNumBlockX, nNumBlockZ, fSizeBlockX, fSizeBlockZ);

	return pMeshField;
}
예제 #2
0
CMeshField* CMeshField::Create(VECTOR3 Pos,VECTOR2 PanelSize,VECTOR2 PanelNum)
{
	CMeshField* Field = new CMeshField;
	if(Field == nullptr)
	{
		return nullptr;
	}
	Field->_Pos = Pos;
	Field->PanelSize = PanelSize;
	Field->PanelNum = PanelNum;
	Field->Init();

	return Field;
}