コード例 #1
0
	PointLightNode* PointLightNode::CreateFromFile(const System::string& path)
	{
		std::ifstream stream(path.Data(), std::ios::binary);
		if (!stream.is_open())
			throw System::PunkInvalidCastException(L"Can't open file " + path);
		return CreateFromStream(stream);
	}
コード例 #2
0
	CameraNode* CameraNode::CreateFromFile(const System::string& path)
	{
		std::ifstream stream(path.ToStdString().c_str(), std::ios::binary);
		if (!stream.is_open())
			throw System::PunkInvalidArgumentException(L"Can't open file " + path);
		return CreateFromStream(stream);
	}
コード例 #3
0
ファイル: SkPicture.cpp プロジェクト: fluxxion82/skia
SkPicture* SkPicture::CreateFromStream(SkStream* stream, InstallPixelRefProc proc) {
    return CreateFromStream(stream, proc, nullptr);
}
コード例 #4
0
ファイル: SkPicture.cpp プロジェクト: fluxxion82/skia
SkPicture* SkPicture::CreateFromStream(SkStream* stream) {
    return CreateFromStream(stream, &default_install, nullptr);
}