@@ -51,8 +51,6 @@ BackgroundSubtraction::BackgroundSubtraction() : PatchObject("background subtrac
5151
5252 this ->initInletsState ();
5353
54- resetTextures (320 ,240 );
55-
5654 bgSubTech = 0 ; // 0 abs, 1 lighter than, 2 darker than
5755
5856 posX = posY = drawW = drawH = 0 .0f ;
@@ -101,6 +99,8 @@ void BackgroundSubtraction::newObject(){
10199void BackgroundSubtraction::setupObjectContent (shared_ptr<ofAppGLFWWindow> &mainWindow){
102100 unusedArgs (mainWindow);
103101
102+ resetTextures (320 ,240 );
103+
104104 bgSubTechVector.push_back (" B&W ABS" );
105105 bgSubTechVector.push_back (" LIGHTER THAN" );
106106 bgSubTechVector.push_back (" DARKER THAN" );
@@ -109,6 +109,7 @@ void BackgroundSubtraction::setupObjectContent(shared_ptr<ofAppGLFWWindow> &main
109109
110110// --------------------------------------------------------------
111111void BackgroundSubtraction::updateObjectContent (map<int ,shared_ptr<PatchObject>> &patchObjects){
112+ unusedArgs (patchObjects);
112113
113114 // External background reset (BANG)
114115 if (this ->inletsConnected [1 ] && *(float *)&_inletParams[1 ] == 1 .0f ){
@@ -132,6 +133,7 @@ void BackgroundSubtraction::updateObjectContent(map<int,shared_ptr<PatchObject>>
132133
133134// --------------------------------------------------------------
134135void BackgroundSubtraction::drawObjectContent (ofTrueTypeFont *font, shared_ptr<ofBaseGLRenderer>& glRenderer){
136+ unusedArgs (font,glRenderer);
135137
136138 // UPDATE STUFF
137139 if (this ->inletsConnected [0 ] && static_cast <ofTexture *>(_inletParams[0 ])->isAllocated ()){
0 commit comments