Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#include <iostream>
auto main(int argc, const char** argv) -> int {
std::shared_ptr<shapes::generator> gen;
if(args.
find(
"--torus")) {
gen =
}
else if(args.
find(
"--sphere")) {
}
else if(args.
find(
"--cube")) {
}
else if(args.
find(
"--icosahedron")) {
}
if(!gen) {
}
topo.
print_dot(std::cout) << std::endl;
return 0;
}
static auto unit_torus(vertex_attrib_bits attr_bits, valid_if_greater_than< int, 4 > rings, valid_if_greater_than< int, 3 > sections, valid_if_ge0_lt1< float > radius_ratio)
Constructs instances of unit_torus_gen.
Definition: torus.hpp:110
Common code is placed in this namespace.
Definition: eagine.hpp:21
Class holding information about the topology of a generated shape.
Definition: topology.hpp:157
auto find(string_view what) const noexcept -> program_arg
Finds and returns the argument with the specified value.
Definition: program_args.hpp:1175
static auto unit_sphere(vertex_attrib_bits attr_bits, valid_if_greater_than< int, 2 > rings, valid_if_greater_than< int, 3 > sections)
Constructs instances of unit_sphere_gen.
Definition: sphere.hpp:89
@ position
Vertex position.
static auto unit_cube(vertex_attrib_bits attr_bits)
Constructs instances of unit_cube_gen.
Definition: cube.hpp:92
static auto unit_icosahedron(vertex_attrib_bits attr_bits)
Constructs instances of unit_icosahedron_gen.
Definition: icosahedron.hpp:71
Class wrapping the main function arguments, providing a convenient API.
Definition: program_args.hpp:1082