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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 #ifndef O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ | 36 #ifndef O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ |
37 #define O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ | 37 #define O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ |
38 | 38 |
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/cross/resource.h" | 41 #include "command_buffer/service/cross/resource.h" |
42 | 42 |
43 namespace o3d { | 43 namespace o3d { |
44 namespace command_buffer { | 44 namespace command_buffer { |
| 45 namespace o3d { |
45 | 46 |
46 class GAPID3D9; | 47 class GAPID3D9; |
47 | 48 |
48 // D3D9 version of Sampler. | 49 // D3D9 version of Sampler. |
49 class SamplerD3D9 : public Sampler { | 50 class SamplerD3D9 : public Sampler { |
50 public: | 51 public: |
51 SamplerD3D9(); | 52 SamplerD3D9(); |
52 | 53 |
53 // Applies sampler states to D3D. | 54 // Applies sampler states to D3D. |
54 bool ApplyStates(GAPID3D9 *gapi, unsigned int unit) const; | 55 bool ApplyStates(GAPID3D9 *gapi, unsigned int unit) const; |
(...skipping 17 matching lines...) Expand all Loading... |
72 D3DTEXTUREADDRESS d3d_address_v_; | 73 D3DTEXTUREADDRESS d3d_address_v_; |
73 D3DTEXTUREADDRESS d3d_address_w_; | 74 D3DTEXTUREADDRESS d3d_address_w_; |
74 D3DTEXTUREFILTERTYPE d3d_mag_filter_; | 75 D3DTEXTUREFILTERTYPE d3d_mag_filter_; |
75 D3DTEXTUREFILTERTYPE d3d_min_filter_; | 76 D3DTEXTUREFILTERTYPE d3d_min_filter_; |
76 D3DTEXTUREFILTERTYPE d3d_mip_filter_; | 77 D3DTEXTUREFILTERTYPE d3d_mip_filter_; |
77 DWORD d3d_max_anisotropy_; | 78 DWORD d3d_max_anisotropy_; |
78 D3DCOLOR d3d_border_color_; | 79 D3DCOLOR d3d_border_color_; |
79 ResourceId texture_id_; | 80 ResourceId texture_id_; |
80 }; | 81 }; |
81 | 82 |
| 83 } // namespace o3d |
82 } // namespace command_buffer | 84 } // namespace command_buffer |
83 } // namespace o3d | 85 } // namespace o3d |
84 | 86 |
85 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ | 87 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ |
OLD | NEW |