Blender
V4.3
intern
ghost
intern
GHOST_XrException.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2002-2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#pragma once
10
11
#include <exception>
12
#include <string>
13
14
class
GHOST_XrException
:
public
std::exception {
15
friend
class
GHOST_XrContext
;
16
17
public
:
18
GHOST_XrException
(
const
char
*msg,
int
result = 0)
19
: std::exception(), m_msg(msg), m_result(result)
20
{
21
}
22
23
const
char
*
what
() const noexcept
override
24
{
25
return
m_msg.data();
26
}
27
28
private
:
29
std::string m_msg;
30
int
m_result;
31
};
GHOST_XrContext
Main GHOST container to manage OpenXR through.
Definition
GHOST_XrContext.hh:60
GHOST_XrException
Definition
GHOST_XrException.hh:14
GHOST_XrException::what
const char * what() const noexcept override
Definition
GHOST_XrException.hh:23
GHOST_XrException::GHOST_XrException
GHOST_XrException(const char *msg, int result=0)
Definition
GHOST_XrException.hh:18
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0