1 #include <msp/strings/format.h>
7 void operator>>(const LexicalConverter &conv, FaceWinding &winding)
9 if(conv.get()=="NON_MANIFOLD")
10 winding = NON_MANIFOLD;
11 else if(conv.get()=="CLOCKWISE")
13 else if(conv.get()=="COUNTERCLOCKWISE")
14 winding = COUNTERCLOCKWISE;
16 throw lexical_error(format("conversion of '%s' to FaceWinding", conv.get()));
19 void operator>>(const LexicalConverter &conv, CullMode &cull)
21 if(conv.get()=="NO_CULL")
23 else if(conv.get()=="CULL_FRONT")
25 else if(conv.get()=="CULL_BACK")
28 throw lexical_error(format("conversion of '%s' to CullMode", conv.get()));