public void setProgram ( Program program ) { if ( program == null ) { throw new IllegalStateException ( "Program cannot be null" ) ; } program . checkCreated ( ) ; this . program = program ; }
Sets the program to be used by this material to shade the models .