public synchronized void set_vin(ScriptField_particle.Item v) { mExportVar_vin = v; FieldPacker fp = new FieldPacker(32); fp.addF32(v.x); fp.addF32(v.y); fp.addF32(v.launchAngle); fp.addF32(v.theta); fp.addF32(v.furlong); fp.addF32(v.distance2edge); fp.addF32(v.delta); fp.addF32(v.amplitude); int[] __dimArr = new int[1]; __dimArr[0] = 1; setVar(mExportVarIdx_vin, fp, __ScriptField_particle, __dimArr); }
public void testScript() { Script S = new ScriptC_primitives(mRS); S.setTimeZone("America/New_York"); S.setVar(4, 9.0f); // floatTest S.setVar(5, 9.0); // doubleTest S.setVar(6, 7); // charTest S.setVar(7, 300); // shortTest S.setVar(8, 20000); // intTest S.setVar(9, 20000000000l); // longTest S.setVar(11, true); // boolTest FieldPacker fp = new FieldPacker(4); fp.addI32(3); S.setVar(12, fp); // structTest Type.Builder tb = new Type.Builder(mRS, Element.I32(mRS)); Allocation a = Allocation.createTyped(mRS, tb.create()); S.setVar(13, a); // allocationTest S.bindAllocation(a, 14); // intPtrTest }
public void invoke_check(int version) { FieldPacker check_fp = new FieldPacker(4); check_fp.addI32(version); invoke(mExportFuncIdx_check, check_fp); }
public void invoke_getTurnPosition(float distancePastEdge) { FieldPacker getTurnPosition_fp = new FieldPacker(4); getTurnPosition_fp.addF32(distancePastEdge); invoke(mExportFuncIdx_getTurnPosition, getTurnPosition_fp); }