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 28 matching lines...) Expand all Loading... |
39 #include "command_buffer/common/cross/gapi_interface.h" | 39 #include "command_buffer/common/cross/gapi_interface.h" |
40 #include "command_buffer/service/win/d3d9/d3d9_utils.h" | 40 #include "command_buffer/service/win/d3d9/d3d9_utils.h" |
41 #include "command_buffer/service/win/d3d9/geometry_d3d9.h" | 41 #include "command_buffer/service/win/d3d9/geometry_d3d9.h" |
42 #include "command_buffer/service/win/d3d9/effect_d3d9.h" | 42 #include "command_buffer/service/win/d3d9/effect_d3d9.h" |
43 #include "command_buffer/service/win/d3d9/texture_d3d9.h" | 43 #include "command_buffer/service/win/d3d9/texture_d3d9.h" |
44 #include "command_buffer/service/win/d3d9/sampler_d3d9.h" | 44 #include "command_buffer/service/win/d3d9/sampler_d3d9.h" |
45 #include "command_buffer/service/win/d3d9/render_surface_d3d9.h" | 45 #include "command_buffer/service/win/d3d9/render_surface_d3d9.h" |
46 | 46 |
47 namespace o3d { | 47 namespace o3d { |
48 namespace command_buffer { | 48 namespace command_buffer { |
| 49 namespace o3d { |
49 | 50 |
50 // This class implements the GAPI interface for D3D9. | 51 // This class implements the GAPI interface for D3D9. |
51 class GAPID3D9 : public GAPIInterface { | 52 class GAPID3D9 : public GAPIInterface { |
52 public: | 53 public: |
53 GAPID3D9(); | 54 GAPID3D9(); |
54 virtual ~GAPID3D9(); | 55 virtual ~GAPID3D9(); |
55 | 56 |
56 void set_hwnd(HWND hwnd) { hwnd_ = hwnd; } | 57 void set_hwnd(HWND hwnd) { hwnd_ = hwnd; } |
57 HWND hwnd() const { return hwnd_; } | 58 HWND hwnd() const { return hwnd_; } |
58 | 59 |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 LPD3DXBUFFER * compilation_errors); | 495 LPD3DXBUFFER * compilation_errors); |
495 D3DXCreateEffectProc create_effect_; | 496 D3DXCreateEffectProc create_effect_; |
496 | 497 |
497 typedef HRESULT (WINAPI *D3DXGetShaderInputSemanticsProc)( | 498 typedef HRESULT (WINAPI *D3DXGetShaderInputSemanticsProc)( |
498 const DWORD* function, | 499 const DWORD* function, |
499 D3DXSEMANTIC* semantics, | 500 D3DXSEMANTIC* semantics, |
500 UINT* count); | 501 UINT* count); |
501 D3DXGetShaderInputSemanticsProc get_shader_input_semantics_; | 502 D3DXGetShaderInputSemanticsProc get_shader_input_semantics_; |
502 }; | 503 }; |
503 | 504 |
| 505 } // namespace o3d |
504 } // namespace command_buffer | 506 } // namespace command_buffer |
505 } // namespace o3d | 507 } // namespace o3d |
506 | 508 |
507 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_GAPI_D3D9_H_ | 509 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_GAPI_D3D9_H_ |
508 | 510 |
OLD | NEW |