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

Method drawTs

samples/Tubular/src/Tube.cpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void Tube::drawTs( float lineLength , float lineWidth )
185{
186 if( mPs.empty() || mTs.empty() )
187 return;
188
189 gl::lineWidth( lineWidth );
190 gl::begin( GL_LINES );
191 for( int i = 0; i < ( mPs.size() - 1 ); ++i ) {
192 gl::vertex( mPs[i] );
193 gl::vertex( mPs[i] + mTs[i]*lineLength );
194 }
195 gl::end();
196}
197
198void Tube::drawFrames( float lineLength, float lineWidth )
199{

Callers

nothing calls this directly

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