| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 // Creates and returns a GL specific Sampler object. | 138 // Creates and returns a GL specific Sampler object. |
| 139 virtual Sampler::Ref CreateSampler(); | 139 virtual Sampler::Ref CreateSampler(); |
| 140 | 140 |
| 141 // Creates and returns a platform-specific RenderDepthStencilSurface object | 141 // Creates and returns a platform-specific RenderDepthStencilSurface object |
| 142 // for use as a depth-stencil render target. | 142 // for use as a depth-stencil render target. |
| 143 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface( | 143 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface( |
| 144 int width, | 144 int width, |
| 145 int height); | 145 int height); |
| 146 | 146 |
| 147 // Saves a png screenshot 'file_name.png'. | 147 // Overridden from Renderer. |
| 148 // Returns true on success and false on failure. | 148 virtual Bitmap::Ref TakeScreenshot(); |
| 149 virtual bool SaveScreen(const String& file_name); | |
| 150 | 149 |
| 151 // Overridden from Renderer. | 150 // Overridden from Renderer. |
| 152 virtual const int* GetRGBAUByteNSwizzleTable(); | 151 virtual const int* GetRGBAUByteNSwizzleTable(); |
| 153 | 152 |
| 154 // Makes this renderer active on the current thread if it is not active | 153 // Makes this renderer active on the current thread if it is not active |
| 155 // already. | 154 // already. |
| 156 void MakeCurrentLazy() { | 155 void MakeCurrentLazy() { |
| 157 if (!IsCurrent()) MakeCurrent(); | 156 if (!IsCurrent()) MakeCurrent(); |
| 158 } | 157 } |
| 159 | 158 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 float polygon_offset_factor_; | 330 float polygon_offset_factor_; |
| 332 float polygon_offset_bias_; | 331 float polygon_offset_bias_; |
| 333 | 332 |
| 334 // Sets the stencils states for either front, back or both facing polys. | 333 // Sets the stencils states for either front, back or both facing polys. |
| 335 void SetStencilStates(GLenum face, const StencilStates& stencil_states); | 334 void SetStencilStates(GLenum face, const StencilStates& stencil_states); |
| 336 }; | 335 }; |
| 337 | 336 |
| 338 } // namespace o3d | 337 } // namespace o3d |
| 339 | 338 |
| 340 #endif // O3D_CORE_CROSS_GL_RENDERER_GL_H_ | 339 #endif // O3D_CORE_CROSS_GL_RENDERER_GL_H_ |
| OLD | NEW |