bool GLProgramCache::init() { loadDefaultGLPrograms(); auto listener = EventListenerCustom::create(Configuration::CONFIG_FILE_LOADED, [this](EventCustom* event){ reloadDefaultGLProgramsRelativeToLights(); }); Director::getInstance()->getEventDispatcher()->addEventListenerWithFixedPriority(listener, -1); return true; }
bool GLProgramCache::init() { loadDefaultGLPrograms(); return true; }