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 25 matching lines...) Expand all Loading... |
36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_EFFECT_GL_H_ | 36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_EFFECT_GL_H_ |
37 | 37 |
38 #include <vector> | 38 #include <vector> |
39 | 39 |
40 #include "command_buffer/common/cross/gapi_interface.h" | 40 #include "command_buffer/common/cross/gapi_interface.h" |
41 #include "command_buffer/service/cross/resource.h" | 41 #include "command_buffer/service/cross/resource.h" |
42 #include "command_buffer/service/cross/gl/gl_utils.h" | 42 #include "command_buffer/service/cross/gl/gl_utils.h" |
43 | 43 |
44 namespace o3d { | 44 namespace o3d { |
45 namespace command_buffer { | 45 namespace command_buffer { |
| 46 namespace o3d { |
46 | 47 |
47 class GAPIGL; | 48 class GAPIGL; |
48 class EffectGL; | 49 class EffectGL; |
49 | 50 |
50 // GL version of EffectParam. | 51 // GL version of EffectParam. |
51 class EffectParamGL: public EffectParam { | 52 class EffectParamGL: public EffectParam { |
52 public: | 53 public: |
53 EffectParamGL(effect_param::DataType data_type, | 54 EffectParamGL(effect_param::DataType data_type, |
54 EffectGL *effect, | 55 EffectGL *effect, |
55 unsigned int param_index); | 56 unsigned int param_index); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 LowLevelParamList low_level_params_; | 150 LowLevelParamList low_level_params_; |
150 | 151 |
151 // List of the indices of the low level params that are samplers. | 152 // List of the indices of the low level params that are samplers. |
152 std::vector<unsigned int> sampler_params_; | 153 std::vector<unsigned int> sampler_params_; |
153 bool update_samplers_; | 154 bool update_samplers_; |
154 | 155 |
155 friend class EffectParamGL; | 156 friend class EffectParamGL; |
156 DISALLOW_COPY_AND_ASSIGN(EffectGL); | 157 DISALLOW_COPY_AND_ASSIGN(EffectGL); |
157 }; | 158 }; |
158 | 159 |
159 | 160 } // namespace o3d |
160 } // namespace command_buffer | 161 } // namespace command_buffer |
161 } // namespace o3d | 162 } // namespace o3d |
162 | 163 |
163 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_EFFECT_GL_H_ | 164 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_EFFECT_GL_H_ |
OLD | NEW |