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 23 matching lines...) Expand all Loading... |
34 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_RENDER_SURFACE_GL_H__ | 34 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_RENDER_SURFACE_GL_H__ |
35 | 35 |
36 // This file contains the definition of the OpenGL versions of | 36 // This file contains the definition of the OpenGL versions of |
37 // render surface-related resource classes. | 37 // render surface-related resource classes. |
38 | 38 |
39 #include "command_buffer/service/cross/gl/texture_gl.h" | 39 #include "command_buffer/service/cross/gl/texture_gl.h" |
40 #include "command_buffer/service/cross/resource.h" | 40 #include "command_buffer/service/cross/resource.h" |
41 | 41 |
42 namespace o3d { | 42 namespace o3d { |
43 namespace command_buffer { | 43 namespace command_buffer { |
| 44 namespace o3d { |
44 | 45 |
45 class RenderSurfaceGL : public RenderSurface { | 46 class RenderSurfaceGL : public RenderSurface { |
46 public: | 47 public: |
47 RenderSurfaceGL(int width, | 48 RenderSurfaceGL(int width, |
48 int height, | 49 int height, |
49 int mip_level, | 50 int mip_level, |
50 int side, | 51 int side, |
51 TextureGL *texture); | 52 TextureGL *texture); |
52 virtual ~RenderSurfaceGL() {} | 53 virtual ~RenderSurfaceGL() {} |
53 | 54 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 104 } |
104 | 105 |
105 private: | 106 private: |
106 // Handles to the depth and stencil render-buffers, respectively. | 107 // Handles to the depth and stencil render-buffers, respectively. |
107 GLuint render_buffers_[2]; | 108 GLuint render_buffers_[2]; |
108 unsigned int width_; | 109 unsigned int width_; |
109 unsigned int height_; | 110 unsigned int height_; |
110 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceGL); | 111 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceGL); |
111 }; | 112 }; |
112 | 113 |
| 114 } // namespace o3d |
113 } // namespace command_buffer | 115 } // namespace command_buffer |
114 } // namespace o3d | 116 } // namespace o3d |
115 | 117 |
116 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_GL_RENDER_SURFACE_GL_H__ | 118 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_GL_RENDER_SURFACE_GL_H__ |
117 | 119 |
OLD | NEW |