| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 namespace o3d { | 47 namespace o3d { |
| 48 namespace command_buffer { | 48 namespace command_buffer { |
| 49 | 49 |
| 50 // This class implements the GAPI interface for D3D9. | 50 // This class implements the GAPI interface for D3D9. |
| 51 class GAPID3D9 : public GAPIInterface { | 51 class GAPID3D9 : public GAPIInterface { |
| 52 public: | 52 public: |
| 53 GAPID3D9(); | 53 GAPID3D9(); |
| 54 virtual ~GAPID3D9(); | 54 virtual ~GAPID3D9(); |
| 55 | 55 |
| 56 void set_hwnd(HWND hwnd) { hwnd_ = hwnd; } | 56 void set_hwnd(HWND hwnd) { hwnd_ = hwnd; } |
| 57 HWND hwnd() const { return hwnd_; } |
| 57 | 58 |
| 58 // Initializes the graphics context, bound to a window. | 59 // Initializes the graphics context, bound to a window. |
| 59 // Returns: | 60 // Returns: |
| 60 // true if successful. | 61 // true if successful. |
| 61 virtual bool Initialize(); | 62 virtual bool Initialize(); |
| 62 | 63 |
| 63 // Destroys the graphics context. | 64 // Destroys the graphics context. |
| 64 virtual void Destroy(); | 65 virtual void Destroy(); |
| 65 | 66 |
| 66 // Implements the BeginFrame function for D3D9. | 67 // Implements the BeginFrame function for D3D9. |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 ResourceMap<SamplerD3D9> samplers_; | 424 ResourceMap<SamplerD3D9> samplers_; |
| 424 ResourceMap<RenderSurfaceD3D9> render_surfaces_; | 425 ResourceMap<RenderSurfaceD3D9> render_surfaces_; |
| 425 ResourceMap<RenderDepthStencilSurfaceD3D9> depth_surfaces_; | 426 ResourceMap<RenderDepthStencilSurfaceD3D9> depth_surfaces_; |
| 426 }; | 427 }; |
| 427 | 428 |
| 428 } // namespace command_buffer | 429 } // namespace command_buffer |
| 429 } // namespace o3d | 430 } // namespace o3d |
| 430 | 431 |
| 431 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_GAPI_D3D9_H_ | 432 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_GAPI_D3D9_H_ |
| 432 | 433 |
| OLD | NEW |