예제 #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;
}
예제 #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;
}