Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
基本网格生成器. 更多...
#include <Primitive.h>
静态 Public 成员函数 | |
static std::optional< Mesh > | make_plane (unsigned int x, unsigned int z) |
生成平面. | |
static std::optional< Mesh > | make_capsule (unsigned int resolution, float height, float radius) |
生成立方体. 更多... | |
static std::optional< Mesh > | make_uv_sphere (unsigned int lat, unsigned int lon) |
生成包含 UV 坐标的球. | |
static Mesh | make_ico_sphere (unsigned int resolution) |
生成 ICO 球. | |
基本网格生成器.
|
static |
生成立方体.
生成胶囊体.
resolution | 分辨率. 越高顶点数越多, 越接近胶囊体. |
height | 高度. |
radius | 半径. |