void ofxBaseGui::unbindFontTexture(){ if(useTTF){ font.getFontTexture().unbind(); }else{ ofBitmapStringGetTextureRef().unbind(); } }
//-------------------------------------------------------------- void testApp::setup() { ofSetVerticalSync(true); useVideo = false; string boardName = "boardConfiguration.yml"; if(useVideo) { player.loadMovie("videoboard.mp4"); player.play(); video = &player; } else { grabber.setDeviceID(1); grabber.initGrabber(640,480); video = &grabber; } //aruco.setThreaded(false); aruco.setup("intrinsics.int", video->getWidth(), video->getHeight(), boardName); aruco.getBoardImage(board.getPixelsRef()); board.update(); showMarkers = true; showBoard = true; showBoardImage = false; ofEnableAlphaBlending(); ofPixels pixels; ofBitmapStringGetTextureRef().readToPixels(pixels); ofSaveImage(pixels,"font.bmp"); }