Blender
V5.0
source
blender
imbuf
opencolorio
intern
config.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#include "
OCIO_config.hh
"
6
7
#include "
fallback/fallback_config.hh
"
8
9
#if defined(WITH_OPENCOLORIO)
10
# include "
libocio/libocio_config.hh
"
11
#endif
12
13
namespace
blender::ocio
{
14
15
std::unique_ptr<Config>
Config::create_from_environment
()
16
{
17
#if defined(WITH_OPENCOLORIO)
18
return
LibOCIOConfig::create_from_environment();
19
#endif
20
21
return
nullptr
;
22
}
23
24
std::unique_ptr<Config>
Config::create_from_file
(
const
StringRefNull
filename)
25
{
26
#if defined(WITH_OPENCOLORIO)
27
return
LibOCIOConfig::create_from_file(filename);
28
#else
29
(void)filename;
30
#endif
31
32
return
nullptr
;
33
}
34
35
std::unique_ptr<Config>
Config::create_fallback
()
36
{
37
return
std::make_unique<FallbackConfig>();
38
}
39
40
}
// namespace blender::ocio
OCIO_config.hh
blender::StringRefNull
Definition
BLI_string_ref.hh:132
blender::ocio::Config::create_fallback
static std::unique_ptr< Config > create_fallback()
Definition
config.cc:35
blender::ocio::Config::create_from_environment
static std::unique_ptr< Config > create_from_environment()
Definition
config.cc:15
blender::ocio::Config::create_from_file
static std::unique_ptr< Config > create_from_file(StringRefNull filename)
Definition
config.cc:24
fallback_config.hh
libocio_config.hh
blender::ocio
Definition
BLF_api.hh:35
Generated on
for Blender by
doxygen
1.16.1