MiMoEngine ASM: x86-64 MASM汇编+C混合架构游戏引擎
核心热路径(数学/内存/字符串/性能分析)用MASM汇编(SSE/AVX2) 外围系统(窗口/渲染/ECS/音频/UI/脚本)用C语言 含自研编辑器、VisualScript积木编程、中文渲染(glyph_atlas)
This commit is contained in:
commit
2d56cb3bc9
91 files changed
+9988
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include <d3d11.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
float pos[3];
|
||||
float norm[3];
|
||||
float uv[2];
|
||||
float color[4];
|
||||
} Vertex;
|
||||
|
||||
typedef struct {
|
||||
ID3D11Buffer* vb;
|
||||
ID3D11Buffer* ib;
|
||||
uint32_t vcount;
|
||||
uint32_t icount;
|
||||
uint32_t stride;
|
||||
} Mesh;
|
||||
|
||||
Mesh* mesh_create_cube(ID3D11Device* dev);
|
||||
Mesh* mesh_create_plane(ID3D11Device* dev, float size);
|
||||
Mesh* mesh_create_sphere(ID3D11Device* dev, float r, int seg);
|
||||
void mesh_destroy(Mesh* m);
|
||||
void mesh_draw(Mesh* m, ID3D11DeviceContext* ctx);
|
||||
Reference in new issue
Block a user