| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 #include <vector> | 38 #include <vector> |
| 39 #include "core/cross/param_cache.h" | 39 #include "core/cross/param_cache.h" |
| 40 #include "core/cross/command_buffer/effect_cb.h" | 40 #include "core/cross/command_buffer/effect_cb.h" |
| 41 | 41 |
| 42 namespace o3d { | 42 namespace o3d { |
| 43 | 43 |
| 44 class ParamHandlerCB; | 44 class ParamHandlerCB; |
| 45 | 45 |
| 46 // This class is the command-buffer implementation of the ParamCache class. It | 46 // This class is the command-buffer implementation of the ParamCache class. It |
| 47 // keeps a list of Param * -> param ResourceID associations handlers. | 47 // keeps a list of Param * -> param ResourceId associations handlers. |
| 48 class ParamCacheCB : public ParamCache { | 48 class ParamCacheCB : public ParamCache { |
| 49 public: | 49 public: |
| 50 ParamCacheCB(); | 50 ParamCacheCB(); |
| 51 virtual ~ParamCacheCB(); | 51 virtual ~ParamCacheCB(); |
| 52 | 52 |
| 53 // Updates the cache of params, re-creating the list of handlers. | 53 // Updates the cache of params, re-creating the list of handlers. |
| 54 // Overridden from ParamCache. | 54 // Overridden from ParamCache. |
| 55 virtual void UpdateCache(Effect* effect, | 55 virtual void UpdateCache(Effect* effect, |
| 56 DrawElement* draw_element, | 56 DrawElement* draw_element, |
| 57 Element* element, | 57 Element* element, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 void ClearHandlers(); | 71 void ClearHandlers(); |
| 72 | 72 |
| 73 unsigned int last_effect_generation_; | 73 unsigned int last_effect_generation_; |
| 74 Effect::MatrixLoadOrder last_matrix_load_order_; | 74 Effect::MatrixLoadOrder last_matrix_load_order_; |
| 75 std::vector<ParamHandlerCB *> handlers_; | 75 std::vector<ParamHandlerCB *> handlers_; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace o3d | 78 } // namespace o3d |
| 79 | 79 |
| 80 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_PARAM_CACHE_CB_H_ | 80 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_PARAM_CACHE_CB_H_ |
| OLD | NEW |