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; }
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); }
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); }
ComponentWAV::ComponentWAV(): m_index(0) { InitializePatches(NULL, 0, CT_DOUBLE); }