Blender
V4.3
source
blender
nodes
shader
materialx
source/blender/nodes/shader/materialx/material.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011-2022 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include <MaterialXCore/Document.h>
8
9
#include <functional>
10
#include <string>
11
12
struct
Depsgraph;
13
struct
Image
;
14
struct
ImageUser
;
15
struct
Main
;
16
struct
Material
;
17
struct
Scene
;
18
19
namespace
blender::nodes::materialx
{
20
21
struct
ExportParams
{
22
std::function<std::string(
Main
*,
Scene
*,
Image
*,
ImageUser
*)>
image_fn
;
23
std::string
new_active_uvmap_name
;
24
std::string
original_active_uvmap_name
;
25
};
26
27
MaterialX::DocumentPtr
export_to_materialx
(Depsgraph *
depsgraph
,
28
Material
*material,
29
const
std::string &material_name,
30
const
ExportParams
&export_params);
31
32
}
// namespace blender::nodes::materialx
depsgraph
const Depsgraph * depsgraph
Definition
deg_eval_copy_on_write.cc:494
blender::nodes::materialx
Definition
group_nodes.cc:13
blender::nodes::materialx::export_to_materialx
MaterialX::DocumentPtr export_to_materialx(Depsgraph *depsgraph, Material *material, const std::string &material_name, const ExportParams &export_params)
Definition
nodes/shader/materialx/material.cc:52
ImageUser
Definition
DNA_image_types.h:26
Image
Definition
DNA_image_types.h:142
Main
Definition
BKE_main.hh:122
Material
Definition
DNA_material_types.h:164
Scene
Definition
DNA_scene_types.h:1988
blender::nodes::materialx::ExportParams
Definition
source/blender/nodes/shader/materialx/material.h:21
blender::nodes::materialx::ExportParams::new_active_uvmap_name
std::string new_active_uvmap_name
Definition
source/blender/nodes/shader/materialx/material.h:23
blender::nodes::materialx::ExportParams::original_active_uvmap_name
std::string original_active_uvmap_name
Definition
source/blender/nodes/shader/materialx/material.h:24
blender::nodes::materialx::ExportParams::image_fn
std::function< std::string(Main *, Scene *, Image *, ImageUser *)> image_fn
Definition
source/blender/nodes/shader/materialx/material.h:22
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0