Move client/src/* to client/*
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef XR_USE_PLATFORM_ANDROID
|
||||
#include <android_native_app_glue.h>
|
||||
#endif
|
||||
|
||||
#include "xr.h"
|
||||
#include <vector>
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <openxr/openxr.h>
|
||||
#include <openxr/openxr_platform.h>
|
||||
|
||||
namespace xr
|
||||
{
|
||||
class instance;
|
||||
|
||||
class system
|
||||
{
|
||||
instance * inst = nullptr;
|
||||
XrSystemId id = XR_NULL_SYSTEM_ID;
|
||||
|
||||
public:
|
||||
system() = default;
|
||||
system(const system &) = default;
|
||||
system & operator=(const system &) = default;
|
||||
system(xr::instance &, XrFormFactor formfactor = XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY);
|
||||
|
||||
operator XrSystemId() const
|
||||
{
|
||||
return id;
|
||||
}
|
||||
operator bool() const
|
||||
{
|
||||
return id != XR_NULL_SYSTEM_ID;
|
||||
}
|
||||
|
||||
XrSystemProperties properties() const;
|
||||
XrGraphicsRequirementsVulkan2KHR graphics_requirements() const;
|
||||
VkPhysicalDevice physical_device(VkInstance vulkan) const;
|
||||
VkDevice create_device(VkPhysicalDevice pdev, VkDeviceCreateInfo & create_info) const;
|
||||
|
||||
std::vector<XrViewConfigurationType> view_configurations() const;
|
||||
XrViewConfigurationProperties view_configuration_properties(XrViewConfigurationType) const;
|
||||
std::vector<XrViewConfigurationView> view_configuration_views(XrViewConfigurationType) const;
|
||||
std::vector<XrEnvironmentBlendMode> environment_blend_modes(XrViewConfigurationType) const;
|
||||
};
|
||||
} // namespace xr
|
||||
Reference in New Issue
Block a user