ShaderBrush* ShaderBrush::createWithVertex(const std::string &vert, const std::string& frag) { auto node = new (std::nothrow) ShaderBrush(); node->initWithVertex(vert, frag); node->autorelease(); return node; }
ShaderNode* ShaderNode::shaderNodeWithVertex(const std::string &vert, const std::string& frag) { auto node = new (std::nothrow) ShaderNode(); node->initWithVertex(vert, frag); node->autorelease(); return node; }