| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // Creates and returns a platform specific Sampler object. | 134 // Creates and returns a platform specific Sampler object. |
| 135 virtual Sampler::Ref CreateSampler(); | 135 virtual Sampler::Ref CreateSampler(); |
| 136 | 136 |
| 137 // TODO: Fill this in | 137 // TODO: Fill this in |
| 138 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface( | 138 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface( |
| 139 int width, | 139 int width, |
| 140 int height) { | 140 int height) { |
| 141 return RenderDepthStencilSurface::Ref(); | 141 return RenderDepthStencilSurface::Ref(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 // Saves a png screenshot. | 144 // Overridden from Renderer. |
| 145 // Returns true on success and false on failure. | 145 virtual Bitmap::Ref TakeScreenshot(); |
| 146 virtual bool SaveScreen(const String& file_name); | |
| 147 | 146 |
| 148 // Gets the allocator for vertex buffer IDs. | 147 // Gets the allocator for vertex buffer IDs. |
| 149 IdAllocator &vertex_buffer_ids() { return vertex_buffer_ids_; } | 148 IdAllocator &vertex_buffer_ids() { return vertex_buffer_ids_; } |
| 150 | 149 |
| 151 // Gets the allocator for index buffer IDs. | 150 // Gets the allocator for index buffer IDs. |
| 152 IdAllocator &index_buffer_ids() { return index_buffer_ids_; } | 151 IdAllocator &index_buffer_ids() { return index_buffer_ids_; } |
| 153 | 152 |
| 154 // Gets the allocator for vertex struct IDs. | 153 // Gets the allocator for vertex struct IDs. |
| 155 IdAllocator &vertex_structs_ids() { return vertex_structs_ids_; } | 154 IdAllocator &vertex_structs_ids() { return vertex_structs_ids_; } |
| 156 | 155 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 257 |
| 259 class StateManager; | 258 class StateManager; |
| 260 scoped_ptr<StateManager> state_manager_; | 259 scoped_ptr<StateManager> state_manager_; |
| 261 | 260 |
| 262 DISALLOW_COPY_AND_ASSIGN(RendererCB); | 261 DISALLOW_COPY_AND_ASSIGN(RendererCB); |
| 263 }; | 262 }; |
| 264 | 263 |
| 265 } // namespace o3d | 264 } // namespace o3d |
| 266 | 265 |
| 267 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_RENDERER_CB_H_ | 266 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_RENDERER_CB_H_ |
| OLD | NEW |