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

相关推荐
爱吃程序猿的喵20 小时前
LingBot-Map 复现与原理剖析:基于 Geometric Context Transformer 的流式 3D 重建
人工智能·python·深度学习·计算机视觉·3d·transformer
xcLeigh21 小时前
Unity基础:创建你的第一个游戏物体——Cube、Sphere与基本3D物体
游戏·3d·unity·教程
HH‘HH1 天前
Unity通过OPC UA工业协议连接工业设备实战指南
unity·游戏引擎
蓝速科技2 天前
蓝速科技 3D 全息舱展览馆落地实测:降噪算力与成像质量深度评测
人工智能·科技·3d
Duo1J2 天前
【UE】Slate 编辑器工具开发03 - 节点编辑器 (EdGraph)
ue5·编辑器·游戏引擎·ue4
fengbingchun2 天前
3D领域常用术语总结
3d
郝学胜-神的一滴2 天前
[简化版 GAMES 104] 现代游戏引擎 02:拆解现代游戏引擎5+1层级架构,吃透引擎底层核心逻辑
c++·unity·架构·游戏引擎·图形渲染·unreal engine·系统设计
unityのkiven2 天前
Unity 中如何创建一片森林:享元模式能不能用?应该怎么用?
unity·游戏引擎·享元模式