| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 return; | 124 return; |
| 125 } | 125 } |
| 126 | 126 |
| 127 if (!bank->renderable()) { | 127 if (!bank->renderable()) { |
| 128 O3D_ERROR(service_locator()) | 128 O3D_ERROR(service_locator()) |
| 129 << "StreamBank has non-renderable buffers '" | 129 << "StreamBank has non-renderable buffers '" |
| 130 << bank->name() << "'"; | 130 << bank->name() << "'"; |
| 131 return; | 131 return; |
| 132 } | 132 } |
| 133 | 133 |
| 134 PlatformSpecificRender(renderer, draw_element, material, override, | 134 PlatformSpecificRender(renderer, draw_element, material, override, |
| 135 param_cache); | 135 param_cache); |
| 136 } | 136 } |
| 137 | 137 |
| 138 namespace { | 138 namespace { |
| 139 | 139 |
| 140 // A class to make it easy to access floats from a buffer given a stream. | 140 // A class to make it easy to access floats from a buffer given a stream. |
| 141 template<typename T> | 141 template<typename T> |
| 142 class FieldReadAccessor { | 142 class FieldReadAccessor { |
| 143 public: | 143 public: |
| 144 FieldReadAccessor() | 144 FieldReadAccessor() |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 } | 698 } |
| 699 | 699 |
| 700 BoundingBoxHelper helper; | 700 BoundingBoxHelper helper; |
| 701 if (WalkPolygons(position_stream_index, &helper)) { | 701 if (WalkPolygons(position_stream_index, &helper)) { |
| 702 helper.GetBoundingBox(result); | 702 helper.GetBoundingBox(result); |
| 703 } else { | 703 } else { |
| 704 *result = BoundingBox(); | 704 *result = BoundingBox(); |
| 705 } | 705 } |
| 706 } | 706 } |
| 707 } // namespace o3d | 707 } // namespace o3d |
| OLD | NEW |