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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 bool RendererStub::GoFullscreen(const DisplayWindow& display, | 186 bool RendererStub::GoFullscreen(const DisplayWindow& display, |
187 int mode_id) { | 187 int mode_id) { |
188 return false; | 188 return false; |
189 } | 189 } |
190 | 190 |
191 bool RendererStub::CancelFullscreen(const DisplayWindow& display, | 191 bool RendererStub::CancelFullscreen(const DisplayWindow& display, |
192 int width, int height) { | 192 int width, int height) { |
193 return false; | 193 return false; |
194 } | 194 } |
195 | 195 |
196 bool RendererStub::fullscreen() const { return false; } | 196 bool RendererStub::fullscreen() const { return false; } |
197 | 197 |
198 void RendererStub::GetDisplayModes(std::vector<DisplayMode> *modes) { | 198 void RendererStub::GetDisplayModes(std::vector<DisplayMode> *modes) { |
199 modes->clear(); | 199 modes->clear(); |
200 } | 200 } |
201 | 201 |
202 bool RendererStub::GetDisplayMode(int id, DisplayMode *mode) { | 202 bool RendererStub::GetDisplayMode(int id, DisplayMode *mode) { |
203 return false; | 203 return false; |
204 } | 204 } |
205 | 205 |
206 void RendererStub::PlatformSpecificPresent(void) { | 206 void RendererStub::PlatformSpecificPresent(void) { |
207 } | 207 } |
208 | 208 |
209 const int* RendererStub::GetRGBAUByteNSwizzleTable() { | 209 const int* RendererStub::GetRGBAUByteNSwizzleTable() { |
210 static int swizzle_table[] = { 0, 1, 2, 3, }; | 210 static int swizzle_table[] = { 0, 1, 2, 3, }; |
211 return swizzle_table; | 211 return swizzle_table; |
212 } | 212 } |
213 | 213 |
214 // This is a factory function for creating Renderer objects. Since | 214 // This is a factory function for creating Renderer objects. Since |
215 // we're implementing a stub renderer, we only ever return a stub renderer. | 215 // we're implementing a stub renderer, we only ever return a stub renderer. |
216 Renderer* Renderer::CreateDefaultRenderer(ServiceLocator* service_locator) { | 216 Renderer* Renderer::CreateDefaultRenderer(ServiceLocator* service_locator) { |
217 return RendererStub::CreateDefault(service_locator); | 217 return RendererStub::CreateDefault(service_locator); |
218 } | 218 } |
219 | 219 |
220 } // namespace o3d | 220 } // namespace o3d |
OLD | NEW |