Blender V5.0
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
8
9#if defined(WITH_OPENCOLORIO)
11#endif
12
13namespace blender::ocio {
14
15std::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
24std::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
35std::unique_ptr<Config> Config::create_fallback()
36{
37 return std::make_unique<FallbackConfig>();
38}
39
40} // namespace blender::ocio
static std::unique_ptr< Config > create_fallback()
Definition config.cc:35
static std::unique_ptr< Config > create_from_environment()
Definition config.cc:15
static std::unique_ptr< Config > create_from_file(StringRefNull filename)
Definition config.cc:24