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

相关推荐
玖玥拾1 小时前
Cocos学习笔记:粒子系统与对象层批量处理
游戏引擎·cocos2d
程序员极光2 小时前
第六篇,如何用高德地图获取定位!
3d·高德
不知名的老吴5 小时前
Unity3D 2022安装教程及全流程下载步骤指南
unity·游戏引擎
Thomas_YXQ5 小时前
Unity3D Addressable 深度优化热更性能消耗
开发语言·3d·unity·微信
程序员也有头发5 小时前
如何使用AI工具开发Unity
unity·游戏引擎·ai编程
七77.5 小时前
【3D 场景生成】NuiScene: Exploring Efficient Generation of Unbounded Outdoor Scenes
3d·世界模型
caimouse6 小时前
Godot 引擎官方常见问题(FAQ)整理
游戏引擎·godot
一锅炖出任易仙6 小时前
创梦汤锅学习日记day29
学习·ai·ue5·游戏引擎
threelab6 小时前
Three.js 几何图形变换 | 三维可视化 / AI 提示词
开发语言·前端·javascript·人工智能·3d·着色器
xian_wwq7 小时前
【学习笔记】倾斜摄影、高斯泼溅(3DGS)、点云与数字孪生“族谱”全盘点
笔记·学习·3d