Example #1
0
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;
}
Example #2
0
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;
}