diff options
author | bunnei <bunneidev@gmail.com> | 2017-10-10 23:32:14 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-10-10 23:32:14 +0200 |
commit | 0906de9a14b735d1d409290ca050eb7d2c2d3d84 (patch) | |
tree | 79bb57d3a4dc4ca377e7a62744c3941de29e785b /src/core/frontend/camera/factory.h | |
parent | Merge remote-tracking branch 'upstream/master' into nx (diff) | |
download | yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.gz yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.bz2 yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.lz yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.xz yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.zst yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/frontend/camera/factory.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/core/frontend/camera/factory.h b/src/core/frontend/camera/factory.h deleted file mode 100644 index f46413fa7..000000000 --- a/src/core/frontend/camera/factory.h +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2016 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include <memory> -#include <string> -#include "core/frontend/camera/interface.h" - -namespace Camera { - -class CameraFactory { -public: - virtual ~CameraFactory(); - - /** - * Creates a camera object based on the configuration string. - * @param config Configuration string to create the camera. The implementation can decide the - * meaning of this string. - * @returns a unique_ptr to the created camera object. - */ - virtual std::unique_ptr<CameraInterface> Create(const std::string& config) const = 0; -}; - -/** - * Registers an external camera factory. - * @param name Identifier of the camera factory. - * @param factory Camera factory to register. - */ -void RegisterFactory(const std::string& name, std::unique_ptr<CameraFactory> factory); - -/** - * Creates a camera from the factory. - * @param name Identifier of the camera factory. - * @param config Configuration string to create the camera. The meaning of this string is - * defined by the factory. - */ -std::unique_ptr<CameraInterface> CreateCamera(const std::string& name, const std::string& config); - -} // namespace Camera |