本文整理汇总了C++中Linker::init方法的典型用法代码示例。如果您正苦于以下问题:C++ Linker::init方法的具体用法?C++ Linker::init怎么用?C++ Linker::init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Linker
的用法示例。
在下文中一共展示了Linker::init方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init
void init()
{
output_type = OUPUT_EXE;
subsystem = IMAGE_SUBSYSTEM_WINDOWS_CUI;
lib_path = get_lib_path();
linker.init();
}
示例2: main
int main() {
char *fileName = "monkey.wrl"; //Model name
int numLayer = 1; //Number of layers used in this application
int numInterator = 0;
// Transfer the OF data to CybParameters structure
CybDataObtainer<cybSurfaceTriTraits> data(numLayer, numInterator);
CybViewMono view;
//Access the parameters information of scene and graphical objects
CybParameters *cybCore = CybParameters::getInstance();
sMesh *mesh = new sMesh[numLayer];
mfReaderModel<cybSurfaceTriTraits> in;
in.read(&mesh[0], fileName);
data.loadModel(mesh);
cout << "loadModel()" << endl;
/*Load the model from VRML file (layerID, fileName)*/
//data.loadModel(0, fileName);
/*Initialize the meshes parameters*/
data.startParameters(numLayer);
//Set the object color (layerID, r, g, b,a)
cybCore->setColor(0,1,1,0.7,0.9);
//Set the window name
view.setWindowName("Simple Visualization");
Provider * provider = new Provider();
CybBayesianNetwork* net = new CybBayesianNetwork(3);
CybNetworkIO* netIO = new CybNetworkIO
("/root/Desktop/teste");
Linker* linker = new Linker(net, provider, netIO);
linker->init();
/*Initialize visualization*/
view.init();
delete provider;
delete net;
delete netIO;
delete linker;
}