changed: deal with dxt1 compressed dds volumes
[opensg.git] / Examples / Tutorial / 16text_families.cpp
blob6411d28435dc50367cb1ea9ff44ff4623d24272d
1 // Includes
2 #ifdef OSG_BUILD_ACTIVE
3 #include <OSGTextFaceFactory.h>
4 #else
5 #include <OpenSG/OSGTextFaceFactory.h>
6 #endif
7 #include <vector>
8 #include <string>
9 #include <iostream>
11 int main(int argc, char *argv[])
13 // Create a vector of strings.
14 std::vector<std::string> families;
16 // Fill the vector with the names of all font families installed
17 // on the system
18 OSG::TextFaceFactory::the()->getFontFamilies(families);
20 // Iterate over the names
21 std::vector<std::string>::const_iterator it;
22 for (it = families.begin(); it != families.end(); ++it)
23 std::cout << *it << std::endl;
25 return EXIT_SUCCESS;