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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | |
215 // we're implementing a stub renderer, we only ever return a stub renderer. | |
216 Renderer* Renderer::CreateDefaultRenderer(ServiceLocator* service_locator) { | |
217 return RendererStub::CreateDefault(service_locator); | |
218 } | |
219 | |
220 } // namespace o3d | 214 } // namespace o3d |
OLD | NEW |