Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

I think here may be a mistake?ofPath default value:UseShapeColor

$
0
0

In ofGLRenderer
//----------------------------------------------------------
//Resets openGL parameters back to OF defaults
void ofGLRenderer::setupGraphicDefaults(){
glEnableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_NORMAL_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
setStyle(ofStyle());
path.setMode(ofPath::POLYLINES);
path.setUseShapeColor(false);
}

this Line :
path.setUseShapeColor(false);

but in ofPath: the init value is bUseShapeColor = true;

ofPath::ofPath(){
strokeWidth = 0;
bFill = true;
windingMode = OF_POLY_WINDING_ODD;
prevCurveRes = 20;
curveResolution = 20;
circleResolution = 20;
mode = COMMANDS;
bNeedsTessellation = false;
bHasChanged = false;
bUseShapeColor = true;
bNeedsPolylinesGeneration = false;
clear();
}


I think "true" is right,because if "false",I can't change the color via "ofSetColor" when using such as "ofDrawXX" ...


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>