wpf 3d游戏引擎的PrimitiveMesh.h和ToolsCommon.h

1.PrimitiveMesh.h

#pragma once

#include "ToolsCommon.h"

namespace primal::tools {

enum primitive_mesh_type : u32

{

plane,

cube,

uv_sphere,

ico_sphere,

cylinder,

capsule,

count

};

struct primitive_init_info

{

primitive_mesh_type type;

u32 segments[3]{ 1,1,1};

math::v3 size{ 1,1,1 };

u32 lod{ 0 };

};

}

2.ToolsCommon.h

#pragma once

#include "CommonHeaders.h"

#include <combaseapi.h>

#ifndef EDITOR_INTERFACE

#define EDITOR_INTERFACE extern "C" __declspec(dllexport)

#endif

相关推荐
jtymyxmz4 小时前
《Unity Shader》10.1.4 折射
unity·游戏引擎
muyouking118 小时前
Rust Slice 完全指南:从基础用法到 3D 场景实战
开发语言·3d·rust
熬夜敲代码的小N10 小时前
Unity WebRequest高级操作:构建高效稳定的网络通信模块
android·数据结构·unity·游戏引擎
萘柰奈10 小时前
Unity【小问题】----URP项目中加载AssetBundle中的预设体即使加载了依赖的材质依然是紫色的问题
unity·游戏引擎·材质
yesyesido11 小时前
3D在线魔方模拟器
科技·算法·3d·生活·业界资讯·交友·帅哥
sword_csdn11 小时前
《SAM 3D: 3Dfy Anything in Images》学习总结
人工智能·3d
海中有金13 小时前
Unreal Engine 线程模型深度解析[2]
人工智能·游戏引擎·虚幻
海中有金13 小时前
Unreal Engine 内存池浅谈[11]——总结篇
游戏引擎·虚幻
da_vinci_x14 小时前
PS 3D Viewer + AI 生成:灰盒(Greybox)一键变“3A”概念图
人工智能·游戏·数学建模·3d·prompt·aigc·游戏美术
苏州知芯传感1 天前
环境智能的触角:MEMS微振镜赋能分布式光纤传感网络
网络·分布式·3d·mems·激光·微振镜