MCPcopy Create free account
hub / github.com/cinder/Cinder / drawPs

Method drawPs

samples/Tubular/src/Tube.cpp:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void Tube::drawPs( float lineWidth )
171{
172 if( mPs.empty() )
173 return;
174
175 gl::lineWidth( lineWidth );
176 gl::begin( GL_LINES );
177 for( int i = 0; i < ( mPs.size() - 1 ); ++i ) {
178 gl::vertex( mPs[i] );
179 gl::vertex( mPs[i + 1] );
180 }
181 gl::end();
182}
183
184void Tube::drawTs( float lineLength , float lineWidth )
185{

Callers 1

drawMethod · 0.80

Calls 6

lineWidthFunction · 0.50
beginFunction · 0.50
vertexFunction · 0.50
endFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected