- std::string name = xml_consumer.first;\r
- if(name == "ogl")\r
- { \r
- int device = xml_consumer.second.get("device", 0);\r
- \r
- stretch stretch = stretch::fill;\r
- std::string stretchStr = xml_consumer.second.get("stretch", "");\r
- if(stretchStr == "none")\r
- stretch = stretch::none;\r
- else if(stretchStr == "uniform")\r
- stretch = stretch::uniform;\r
- else if(stretchStr == "uniformtofill")\r
- stretch = stretch::uniform_to_fill;\r
-\r
- bool windowed = xml_consumer.second.get("windowed", false);\r
- channels_.back()->consumer()->add(index++, ogl_consumer(device, stretch, windowed));\r
- }\r
+ const std::string name = xml_consumer.first;\r
+ if(name == "screen")\r
+ channels_.back()->output()->add(index++, create_ogl_consumer(xml_consumer.second)); \r