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 segments3{ 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

相关推荐
魔士于安4 天前
unity 丑陋哥布林 哥布林有humannoid 动画没 带动画
unity·游戏引擎·材质·贴图·模型
Zldaisy3d4 天前
中南大学 | 热稳定纳米析出相助力增材制造Al-Fe-Cr-Sc-Zr合金400℃长期热暴露后室温强度保持
3d·制造
陆康永4 天前
3d swipe 拖动 -改为linear css
3d·swiper
淡海水5 天前
13-04-面试-源码级深度追问链
数据结构·unity·面试·c#·游戏引擎·源码·il2cpp
Zldaisy3d5 天前
增材制造陶瓷的强化策略:机制与工艺-结构-性能关系的多尺度综述
3d·制造
在下胡三汉5 天前
用 glTF/glb 加载自定义 3D 模型
3d·gltf
小小数媒成员5 天前
UGUI 性能优化(详细,全,深入)
开发语言·unity·游戏引擎
goujunwe6 天前
GEO 评估方法:如何自测你的内容,会不会被 AI 引用
搜索引擎·网络安全·游戏引擎·全文检索·中文分词
李航19837 天前
用 DeepDraw 几何引擎开发建筑设计软件(十):推挤工具
python·3d
林川~017 天前
Unity 常用 API 与核心类全解:从生命周期到协程,附性能避坑清单(Unity 6 适配)
unity·游戏引擎·常用api