little cleanup

This commit is contained in:
jrkb 2023-04-17 17:06:15 +02:00
parent 65ca48275c
commit d78c341871

View file

@ -49,20 +49,6 @@ void GPUFontAtlasLayerCombo::setup(const ComboIdentifier & identifier,
cout << "Render type " << r->getType() << endl;
}
void GPUFontAtlasLayerCombo::update(){
//float animationSpeed = 1.0;
//float threshold = 1.0;
//for(int i = 0; i < fontVariationAxes.size(); i++){
//ofxGPUFont::Font::FontVariationAxis & axis = fontVariationAxes[i];
//ofxGPUFont::Font::FontVariationAxisParameters & axisParams = fontVariationAxesParameters[i];
//double newValue = ofMap(sin(ofGetElapsedTimef() * animationSpeed),
//-1, 1,
//axisParams.minValue, axisParams.maxValue);
//if(abs(newValue - axis.value) > threshold){
//font->setFontVariationAxis(library, axis.name, newValue);
//axis.value = newValue;
//font->prepareGlyphsForText(mainText, true);
//}
//}
for(const auto & layer : layers){
if(layer->isDirtyDirty()){
isDirty = true;