From 8924c07280cdd96b01c501b3b820711f89039edd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 29 Jul 2011 23:35:46 +0000 Subject: Added print() function for materials, read material color alpha from shader files. --- src/core/commandbuffer.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc index bafb3b8..c4777d4 100644 --- a/src/core/commandbuffer.cc +++ b/src/core/commandbuffer.cc @@ -150,7 +150,12 @@ void func_list_model(std::string const &args) void func_list_materials(std::string const &args) { - model::Material::list(); + model::Material *material = model::Material::find(args); + if (material) { + material->print(); + } else { + model::Material::list(); + } } void func_list_module(std::string const &args) -- cgit v1.2.3