示例#1
0
void MeshTest::configurationIndexType() {
    Utility::Configuration c;

    c.setValue("type", Mesh::IndexType::UnsignedByte);
    CORRADE_COMPARE(c.value("type"), "UnsignedByte");
    CORRADE_COMPARE(c.value<Mesh::IndexType>("type"), Mesh::IndexType::UnsignedByte);
}
示例#2
0
void MeshTest::configurationPrimitive() {
    Utility::Configuration c;

    c.setValue("primitive", MeshPrimitive::LineStrip);
    CORRADE_COMPARE(c.value("primitive"), "LineStrip");
    CORRADE_COMPARE(c.value<MeshPrimitive>("primitive"), MeshPrimitive::LineStrip);
}