OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include "core/cross/sampler.h" | 59 #include "core/cross/sampler.h" |
60 #include "core/cross/shape.h" | 60 #include "core/cross/shape.h" |
61 #include "core/cross/skin.h" | 61 #include "core/cross/skin.h" |
62 #include "core/cross/standard_param.h" | 62 #include "core/cross/standard_param.h" |
63 #include "core/cross/state_set.h" | 63 #include "core/cross/state_set.h" |
64 #include "core/cross/stream.h" | 64 #include "core/cross/stream.h" |
65 #include "core/cross/stream_bank.h" | 65 #include "core/cross/stream_bank.h" |
66 #include "core/cross/transform.h" | 66 #include "core/cross/transform.h" |
67 #include "core/cross/tree_traversal.h" | 67 #include "core/cross/tree_traversal.h" |
68 #include "core/cross/viewport.h" | 68 #include "core/cross/viewport.h" |
| 69 #if defined(RENDERER_CAIRO) |
69 #include "core/cross/cairo/layer.h" | 70 #include "core/cross/cairo/layer.h" |
| 71 #endif |
70 | 72 |
71 namespace o3d { | 73 namespace o3d { |
72 | 74 |
73 ClassManager::ClassManager(ServiceLocator* service_locator) | 75 ClassManager::ClassManager(ServiceLocator* service_locator) |
74 : service_locator_(service_locator), | 76 : service_locator_(service_locator), |
75 service_(service_locator_, this) { | 77 service_(service_locator_, this) { |
76 // Params | 78 // Params |
77 AddTypedClass<ParamBoolean>(); | 79 AddTypedClass<ParamBoolean>(); |
78 AddTypedClass<ParamBoundingBox>(); | 80 AddTypedClass<ParamBoundingBox>(); |
79 AddTypedClass<ParamDrawContext>(); | 81 AddTypedClass<ParamDrawContext>(); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 std::vector<const ObjectBase::Class*> classes; | 271 std::vector<const ObjectBase::Class*> classes; |
270 for (ObjectClassInfoNameMap::const_iterator it = | 272 for (ObjectClassInfoNameMap::const_iterator it = |
271 object_class_info_name_map_.begin(); | 273 object_class_info_name_map_.begin(); |
272 it != object_class_info_name_map_.end(); ++it) { | 274 it != object_class_info_name_map_.end(); ++it) { |
273 classes.push_back(it->second.class_type()); | 275 classes.push_back(it->second.class_type()); |
274 } | 276 } |
275 return classes; | 277 return classes; |
276 } | 278 } |
277 | 279 |
278 } // namespace o3d | 280 } // namespace o3d |
OLD | NEW |