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 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_TEXTURE_GL_H_ | 36 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_TEXTURE_GL_H_ |
37 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_TEXTURE_GL_H_ | 37 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_TEXTURE_GL_H_ |
38 | 38 |
39 #include "command_buffer/common/cross/gapi_interface.h" | 39 #include "command_buffer/common/cross/gapi_interface.h" |
40 #include "command_buffer/service/cross/gl/gl_utils.h" | 40 #include "command_buffer/service/cross/gl/gl_utils.h" |
41 #include "command_buffer/service/cross/resource.h" | 41 #include "command_buffer/service/cross/resource.h" |
42 #include "command_buffer/service/cross/texture_utils.h" | 42 #include "command_buffer/service/cross/texture_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 RenderDepthStencilSurfaceGL; | 48 class RenderDepthStencilSurfaceGL; |
48 class RenderSurfaceGL; | 49 class RenderSurfaceGL; |
49 | 50 |
50 // The base class for a GL texture resource, providing access to the base GL | 51 // The base class for a GL texture resource, providing access to the base GL |
51 // texture that can be assigned to an effect parameter or a sampler unit. | 52 // texture that can be assigned to an effect parameter or a sampler unit. |
52 class TextureGL : public Texture { | 53 class TextureGL : public Texture { |
53 public: | 54 public: |
54 TextureGL(texture::Type type, | 55 TextureGL(texture::Type type, |
55 unsigned int levels, | 56 unsigned int levels, |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 int side); | 272 int side); |
272 | 273 |
273 virtual bool InstallFrameBufferObjects( | 274 virtual bool InstallFrameBufferObjects( |
274 RenderSurfaceGL *gl_surface); | 275 RenderSurfaceGL *gl_surface); |
275 | 276 |
276 private: | 277 private: |
277 unsigned int side_; | 278 unsigned int side_; |
278 DISALLOW_COPY_AND_ASSIGN(TextureCubeGL); | 279 DISALLOW_COPY_AND_ASSIGN(TextureCubeGL); |
279 }; | 280 }; |
280 | 281 |
| 282 } // namespace o3d |
281 } // namespace command_buffer | 283 } // namespace command_buffer |
282 } // namespace o3d | 284 } // namespace o3d |
283 | 285 |
284 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_TEXTURE_GL_H_ | 286 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_TEXTURE_GL_H_ |
OLD | NEW |