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

Function end

src/cinder/gl/wrapper.cpp:688–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688void end()
689{
690 auto ctx = gl::context();
691
692 if( ctx->immediate().empty() )
693 return;
694 else {
695 const GlslProg* curGlslProg = ctx->getGlslProg();
696 if( ! curGlslProg )
697 ctx->pushGlslProg( ctx->getStockShader( ShaderDef().color() ).get() );
698
699 ctx->immediate().draw();
700 ctx->immediate().clear();
701
702 if( ! curGlslProg )
703 ctx->popGlslProg();
704 }
705}
706
707#if ! defined( CINDER_GL_ES_2 )
708void bindBufferBase( GLenum target, int index, BufferObjRef buffer )

Callers 11

drawMethod · 0.50
drawMethod · 0.50
drawSplineMethod · 0.50
drawMethod · 0.50
drawPsMethod · 0.50
drawTsMethod · 0.50
drawFramesMethod · 0.50
drawFrameSlicesMethod · 0.50
drawMethod · 0.50

Calls 10

getGlslProgMethod · 0.80
pushGlslProgMethod · 0.80
colorMethod · 0.80
popGlslProgMethod · 0.80
contextFunction · 0.70
ShaderDefClass · 0.70
emptyMethod · 0.45
getMethod · 0.45
drawMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected