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

相关推荐
郑寿昌15 小时前
UE5与UE6在Lumen和Nanite的差异解析
游戏引擎·图形渲染·着色器
郑寿昌1 天前
UE6 AI加速Lumen光线追踪降噪技术解析
人工智能·游戏引擎
晴夏。1 天前
GAS下的网络同步的全面分析【超级全面】
游戏引擎·ue·gas·网络同步
田鸡_1 天前
Unity新输入系统(Input System)教学篇
unity·游戏引擎·游戏程序
EQ-雪梨蛋花汤1 天前
【Unity笔记】Unity 音游模板与免费资源:高效构建节奏游戏开发全指南
笔记·unity·游戏引擎
微莱羽墨1 天前
零、0基础入门Unity 安装详细教程(2026最新版教程,安装Unity看这一篇就够了!)
unity·游戏引擎·unity安装
动恰客流管家1 天前
动恰3DV3丨2026年实体商业数字化转型:客流数据是第一生产力——全场景智慧客流解决方案
大数据·人工智能·3d·性能优化
nnsix1 天前
Unity 刚体的 默认力、瞬时力 区别
unity·游戏引擎
nnsix1 天前
Unity Sprite的 Generate Physics Shape 参数解释
unity·游戏引擎
魔士于安1 天前
Unity完整小球迷宫项目
前端·unity·游戏引擎·贴图·模型