Example #1
0
BulletMLRunner::BulletMLRunner(BulletMLParser* bulletml) {
	const std::vector<BulletMLNode*>& acts = bulletml->getTopActions();
	for (size_t i = 0; i < acts.size(); i++) {
		std::vector<BulletMLNode*> act;
		act.push_back(acts[i]);
		BulletMLState* state =
			new BulletMLState(bulletml, act,
							  boost::shared_ptr<BulletMLParameter>());
		impl_.push_back(makeImpl(state));
	}
}
bool RSReflectionCpp::reflect(const string &OutputPathBase,
                              const string &InputFileName,
                              const string &OutputBCFileName) {
    mInputFileName = InputFileName;
    mOutputPath = OutputPathBase;
    mOutputBCFileName = OutputBCFileName;
    mClassName = string("ScriptC_") + stripRS(InputFileName);

    makeHeader("android::renderscriptCpp::ScriptC");
    std::vector< std::string > header(mText);
    mText.clear();

    makeImpl("android::renderscriptCpp::ScriptC");
    std::vector< std::string > cpp(mText);
    mText.clear();


    RSReflectionBase::writeFile(mClassName + ".h", header);
    RSReflectionBase::writeFile(mClassName + ".cpp", cpp);


    return false;
}
Example #3
0
BulletMLRunner::BulletMLRunner(BulletMLState* state) {
	impl_.push_back(makeImpl(state));
}