slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
FbxImporter.h
浏览该文件的文档.
1#pragma once
2
3#include "BaseMesh.h"
4
5#include <filesystem>
6#include <memory>
7#include <string>
8#include <string_view>
9
10namespace z8 {
11
14 // FBX 常见资产使用右手系;反转 Z 并同步翻转三角形绕序可保持几何法线方向。
16 bool FlipTextureV = false;
17};
18
21 std::unique_ptr<BaseMesh> Value;
22 std::string Error;
23
24 explicit operator bool() const { return Value != nullptr; }
25};
26
35public:
38 const std::filesystem::path& fileName,
39 const FbxImportOptions& options = {});
42 std::string_view source, std::string_view meshName = "FBX",
43 const FbxImportOptions& options = {});
44};
45
46} // namespace z8
将 ASCII FBX 7.x 的 Geometry 数据转换为渲染网格。
Definition FbxImporter.h:34
static FbxMeshImportResult Parse(const std::filesystem::path &fileName, const FbxImportOptions &options={})
Definition FbxImporter.cpp:248
static FbxMeshImportResult ParseText(std::string_view source, std::string_view meshName="FBX", const FbxImportOptions &options={})
Definition FbxImporter.cpp:260
资源的强类型引用,同时覆盖持久化 ID 与运行时索引两种边界。
Definition ResourceRef.h:36
世界矩阵 描述坐标系,左手坐标系 使用 DirectX12 坐标系的描述
Definition Application.h:15
Definition FbxImporter.h:13
bool FlipTextureV
Definition FbxImporter.h:16
bool ConvertToLeftHanded
Definition FbxImporter.h:15
Definition FbxImporter.h:20
std::unique_ptr< BaseMesh > Value
Definition FbxImporter.h:21
std::string Error
Definition FbxImporter.h:22
Definition BaseMesh.h:47