From 10ff8d73d108a506db9b6310ae2ea714163f1854 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 20 Apr 2010 18:25:39 +0200 Subject: [PATCH] Update for color descriptors --- examples/materialtest.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/materialtest.cpp b/examples/materialtest.cpp index b73e4ec20..487cd9a12 100644 --- a/examples/materialtest.cpp +++ b/examples/materialtest.cpp @@ -87,6 +87,17 @@ int main (int numargs, const char ** args) } cout << endl; } + cout << endl << "----==== Color descriptors ====----" << endl; + vector colors; + Materials->ReadDescriptorColors(colors); + for(uint32_t i = 0; i < colors.size();i++) + { + cout << i << ": " << colors[i].id << " - " << colors[i].name << "[" + << (unsigned int) (colors[i].r*255) << ":" + << (unsigned int) (colors[i].v*255) << ":" + << (unsigned int) (colors[i].b*255) << ":" + << "]" << endl; + } #ifndef LINUX_BUILD cout << "Done. Press any key to continue" << endl; cin.ignore();