void CSliderCtrlEx::SetRangeMax(int nMax, BOOL bRedraw) { int h = GetRangeMax(); if (nMax < h) clearColors(); CSliderCtrl::SetRangeMax(nMax, bRedraw); }
void CSliderCtrlEx::SetRangeMin(int nMin, BOOL bRedraw) { int l = GetRangeMin(); if (nMin < l) clearColors(); // old color ranges are almost certainly bogus CSliderCtrl::SetRangeMin(nMin, bRedraw); }
void Colors::confirmFlash(){ clearColors(); setColors(42,0,255,0); pushColors(); watch->getMotor()->pulseMotor(1023, 150); delay(50); }
void ofVbo::clearAttribute(int attributePos_){ if (!hasAttribute(attributePos_)) return; if (ofIsGLProgrammableRenderer()) { if(attributePos_>3){ customAttributes.erase(attributePos_); }else{ switch (attributePos_){ case ofShader::POSITION_ATTRIBUTE: clearVertices(); break; case ofShader::COLOR_ATTRIBUTE: clearColors(); break; case ofShader::NORMAL_ATTRIBUTE: clearNormals(); break; case ofShader::TEXCOORD_ATTRIBUTE: clearTexCoords(); break; default: break; } } }else{ customAttributes.erase(attributePos_); } }
//-------------------------------------------------------------- void ofVbo::clear(){ // clear all fixed function attributes clearVertices(); clearColors(); clearNormals(); clearTexCoords(); // we're not using any of these. bUsingVerts = false; bUsingColors = false; bUsingNormals = false; bUsingTexCoords = false; // clear all custom attributes. customAttributes.clear(); clearIndices(); if(vaoID!=0){ releaseVAO(vaoID); vaoID=0; } #if defined(TARGET_ANDROID) || defined(TARGET_OF_IOS) unregisterVbo(this); #endif }
void CSliderCtrlEx::SetRange(int nMin, int nMax, BOOL bRedraw) { int l, h; GetRange(l, h); if ((nMin < l) || (nMax > h)) clearColors(); CSliderCtrl::SetRange(nMin, nMax, bRedraw); }
void Colors::errorFlash(){ for(byte i = 1; i <= 16; i++){ analogWrite(MOTOR_PIN,1023/ i); byte mod = i%8; if(mod == 0){ clearColors(); setColors(85,255,128,0); pushColors(); }else if(mod == 4){ clearColors(); setColors(42,255,128,0); pushColors(); } delay(50); } analogWrite(MOTOR_PIN,0); }
//-------------------------------------------------------------- void ofVbo::clear(){ clearVertices(); clearNormals(); clearColors(); clearTexCoords(); clearIndices(); if(supportVAOs && vaoID!=0){ releaseVAO(vaoID); vaoID=0; } bAllocated = false; #if defined(TARGET_ANDROID) || defined(TARGET_OF_IOS) unregisterVbo(this); #endif }
//-------------------------------------------------------------- void ofVbo::clear(){ // clear all fixed function attributes clearVertices(); clearColors(); clearNormals(); clearTexCoords(); // we're not using any of these. bUsingVerts = false; bUsingColors = false; bUsingNormals = false; bUsingTexCoords = false; // clear all custom attributes. customAttributes.clear(); clearIndices(); if(vaoID!=0){ releaseVAO(vaoID); vaoID=0; } }
PptRecolorInfoAtom::~PptRecolorInfoAtom() { ChLOG_DEBUG_START_FN; clearColors(); clearFills(); }