From 6d24ca935f50f58c85122710e24faf2297079a20 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Wed, 26 Apr 2023 16:11:59 +0200 Subject: [PATCH] comment/remove debug drawings --- src/GPUFontAtlasLayerCombo.cpp | 36 +++++++++++++--------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/src/GPUFontAtlasLayerCombo.cpp b/src/GPUFontAtlasLayerCombo.cpp index 0a4f021..bfeba0d 100644 --- a/src/GPUFontAtlasLayerCombo.cpp +++ b/src/GPUFontAtlasLayerCombo.cpp @@ -300,31 +300,23 @@ void GPUFontAtlasLayerCombo::draw(){ } glUseProgram(currentProgram); - ofPushStyle(); - ofSetColor(ofColor::white); - for(const auto & b : outerBoundingBoxes){ - int i = 0; - for(const auto & v : b.getVertices()){ - ofSetColor(b.getColors()[i]); - ofDrawCircle(v, 2); - ofDrawBitmapString(ofToString(i), 0, 0); - i++; - } - b.drawVertices(); - } - ofFill(); - ofPopStyle(); + //ofPushStyle(); + //ofSetColor(ofColor::white); + //for(const auto & b : outerBoundingBoxes){ + //int i = 0; + //for(const auto & v : b.getVertices()){ + //ofSetColor(b.getColors()[i]); + //ofDrawCircle(v, 2); + //ofDrawBitmapString(ofToString(i), 0, 0); + //i++; + //} + //b.drawVertices(); + //} + //ofFill(); + //ofPopStyle(); } glDisable(GL_BLEND); - - //ofDrawBitmapStringHighlight( - //"fps: " + ofToString(ofGetFrameRate()) + "\n" - //+ "font: " + this->identifier.fontPath + "\n" - //+ "lineHEight: " + ofToString(superLineHeight) + "\n" - //+ "antiAliasingWindowSize: " + ofToString(antiAliasingWindowSize) + "\n" - //+ "SSAA: " + (enableSuperSamplingAntiAliasing ? "on" : "off") + "\n" - //, 20, 20); } void GPUFontAtlasLayerCombo::getAndApplyTransformOrigin(glm::vec4 & transformOrigin,