MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / doSet

Method doSet

OgreMain/src/OgreGpuProgram.cpp:519–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 }
518 }
519 void GpuProgram::CmdType::doSet( void *target, const String &val )
520 {
521 GpuProgram *t = static_cast<GpuProgram *>( target );
522 if( val == "vertex_program" )
523 {
524 t->setType( GPT_VERTEX_PROGRAM );
525 }
526 else if( val == "geometry_program" )
527 {
528 t->setType( GPT_GEOMETRY_PROGRAM );
529 }
530 else if( val == "domain_program" )
531 {
532 t->setType( GPT_DOMAIN_PROGRAM );
533 }
534 else if( val == "hull_program" )
535 {
536 t->setType( GPT_HULL_PROGRAM );
537 }
538 else if( val == "compute_program" )
539 {
540 t->setType( GPT_COMPUTE_PROGRAM );
541 }
542 else
543 {
544 t->setType( GPT_FRAGMENT_PROGRAM );
545 }
546 }
547 //-----------------------------------------------------------------------
548 String GpuProgram::CmdSyntax::doGet( const void *target ) const
549 {

Callers 1

setParameterMethod · 0.45

Calls 6

setSyntaxCodeMethod · 0.80
setNumClipDistancesMethod · 0.80
setPrefabRootLayoutMethod · 0.80
setTypeMethod · 0.45

Tested by

no test coverage detected