Gazebo Rendering
API Reference
9.0.0
insert_drive_file
Tutorials
library_books
Classes
toc
Namespaces
insert_drive_file
Files
launch
Gazebo Website
Index
List
Hierarchy
Members: All
Members: Functions
Members: Variables
Members: Typedefs
Members: Enumerations
Members: Enumerator
List
Members
Functions
Typedefs
Variables
Enumerations
Enumerator
src
gz-rendering
include
gz
rendering
GraphicsAPI.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Open Source Robotics Foundation
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
*/
17
#ifndef GZ_RENDERING_GRAPHICSAPI_HH_
18
#define GZ_RENDERING_GRAPHICSAPI_HH_
19
20
#include <string>
21
#include <cstdint>
22
#include "gz/rendering/config.hh"
23
#include "gz/rendering/Export.hh"
24
25
namespace
gz
26
{
27
namespace
rendering
28
{
29
inline
namespace
GZ_RENDERING_VERSION_NAMESPACE {
30
32
enum class
GZ_RENDERING_VISIBLE
GraphicsAPI
: uint16_t
33
{
37
GRAPHICS_API_BEGIN
= 0,
38
40
UNKNOWN
=
GRAPHICS_API_BEGIN
,
41
43
OPENGL
= 1,
44
46
DIRECT3D11
= 2,
47
49
VULKAN
= 3,
50
52
METAL
= 4,
53
57
GRAPHICS_API_END
58
};
59
61
class
GZ_RENDERING_VISIBLE
GraphicsAPIUtils
62
{
68
public
:
static
std::string
Str
(
GraphicsAPI
_e);
69
75
public
:
static
GraphicsAPI
Set
(
const
std::string
&_str);
76
};
77
}
78
}
79
}
80
#endif