1.加载格式为 “*.mov” 的视频文件
ofVideoPlayer fingerMovie; fingerMovie.loadMovie("movies/fingers.mov"); fingerMovie.play();
注意 :如有出错,请下载quickTime并正确安装配置
2.加载Txt文件
ofBuffer buffer = ofBufferFromFile("ohplaces.txt");
3.加载xml文件
ofxXmlSettings XML; if( XML.loadFile("mySettings.xml") ){ message = "mySettings.xml loaded!"; }else{ message = "unable to load mySettings.xml check data/ folder"; }
4.加载TTF文件
ofTrueTypeFont TTF; TTF.loadFont("mono.ttf",7);