Ejemplo n.º 1
0
bool cePatchMeshGL20::Initialize (iDevice						*device,
															iVertexBuffer				*vertices, 
															unsigned						numVertexP, 
															unsigned						numVertexQ,
															iVertexDeclaration *vertexDeclaration,
															unsigned						numPatchesP, 
															unsigned						numPatchesQ, 
															float								distance,
															bool								wrapP, 
															bool								wrapQ)
{
	assert (device);
	assert (vertices);
	assert (vertexDeclaration);

	// first initial all private members
  CE_SET(_vertices, vertices);
	_numP = numVertexP;
	_numQ = numVertexQ;
  CE_SET(_vertexDeclaration, vertexDeclaration);

	if (!CreatePatches (device, numPatchesP, numPatchesQ, wrapP, wrapQ)) return false;
	InitializePatches (1);
	if (!UpdatePatchBoundingBoxes (distance)) return false;

	return true;
}
Ejemplo n.º 2
0
ComponentIf::ComponentIf()
{
  sPatchOut po;
  po.type = CT_NONE;
  po.name = "Value";
  po.dynamic = true;
  po.value = NULL;
  InitializePatches(blueprint, sizeof(blueprint) / sizeof(sPatchIn), &po, 1);
}
Ejemplo n.º 3
0
ComponentOp2::ComponentOp2():
  m_operator('+')
{
  sPatchOut po;
  po.type = CT_DOUBLE;
  po.name = "Value";
  po.dynamic = false;
  po.value = NULL;
  InitializePatches(s_blueprintIn, sizeof(s_blueprintIn) / sizeof(sPatchIn),
    &po, 1);
}
Ejemplo n.º 4
0
ComponentWAV::ComponentWAV():
  m_index(0)
{
  InitializePatches(NULL, 0, CT_DOUBLE);
}