Files
OpenVulkano/openVulkanoCpp/AR/Provider/Network/ArSessionStream.h
2024-07-09 13:26:54 +02:00

41 lines
1.0 KiB
C++

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "AR/ArSession.hpp"
namespace OpenVulkano::AR::Network
{
class ArSessionStream final : public ArSession
{
protected:
Scene::Texture * MakeTexture(OpenVulkano::AR::ArFrame *frame) override { return nullptr; } //TODO
void ReturnTexture(Scene::Texture *texture) override {} // TODO
public:
ArSessionStream(const std::string& serverAddress, std::optional<ArSessionConfig> requestConfig = std::nullopt);
~ArSessionStream() override = default;
void Start() override;
void Stop() override;
void Pause() override;
[[nodiscard]] std::shared_ptr<ArFrame> GetFrame() override;
[[nodiscard]] ArSessionType GetSessionType() override { return ArSessionType::NETWORK_STREAM; }
[[nodiscard]] ArType GetArType() override;
void SetRenderer(IRenderer* renderer) override {} // TODO
};
}