OrbitEngine::Graphics::MeshGenerator class

Contents

Public static functions

static auto FromVertexs(std::vector<Vertex3D>& verts, float size = 1.0f) -> Mesh*
static auto FromVertexs(std::vector<Vertex3D>& verts, std::vector<unsigned short>& indices, float size = 1.0f) -> Mesh*
static auto Plane(float width = 1, float length = 1, unsigned int resX = 2, unsigned int resZ = 2) -> Mesh*
static auto Plane(float size, int resolution) -> Mesh*
static auto Box(float width = 1, float height = 1, float length = 1) -> Mesh*
static auto SphereStandard(float radius = 1.0f, unsigned int stacks = 20, unsigned int slices = 20) -> Mesh*
static auto Torus(float radius1, float radius2, unsigned int segments, unsigned int sides) -> Mesh*