| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 sampler::AddressingMode addressing_w, | 59 sampler::AddressingMode addressing_w, |
| 60 sampler::FilteringMode mag_filter, | 60 sampler::FilteringMode mag_filter, |
| 61 sampler::FilteringMode min_filter, | 61 sampler::FilteringMode min_filter, |
| 62 sampler::FilteringMode mip_filter, | 62 sampler::FilteringMode mip_filter, |
| 63 unsigned int max_anisotropy); | 63 unsigned int max_anisotropy); |
| 64 | 64 |
| 65 // Sets the border color states. | 65 // Sets the border color states. |
| 66 void SetBorderColor(const RGBA &color); | 66 void SetBorderColor(const RGBA &color); |
| 67 | 67 |
| 68 // Sets the texture. | 68 // Sets the texture. |
| 69 void SetTexture(ResourceID texture) { texture_id_ = texture; } | 69 void SetTexture(ResourceId texture) { texture_id_ = texture; } |
| 70 private: | 70 private: |
| 71 D3DTEXTUREADDRESS d3d_address_u_; | 71 D3DTEXTUREADDRESS d3d_address_u_; |
| 72 D3DTEXTUREADDRESS d3d_address_v_; | 72 D3DTEXTUREADDRESS d3d_address_v_; |
| 73 D3DTEXTUREADDRESS d3d_address_w_; | 73 D3DTEXTUREADDRESS d3d_address_w_; |
| 74 D3DTEXTUREFILTERTYPE d3d_mag_filter_; | 74 D3DTEXTUREFILTERTYPE d3d_mag_filter_; |
| 75 D3DTEXTUREFILTERTYPE d3d_min_filter_; | 75 D3DTEXTUREFILTERTYPE d3d_min_filter_; |
| 76 D3DTEXTUREFILTERTYPE d3d_mip_filter_; | 76 D3DTEXTUREFILTERTYPE d3d_mip_filter_; |
| 77 DWORD d3d_max_anisotropy_; | 77 DWORD d3d_max_anisotropy_; |
| 78 D3DCOLOR d3d_border_color_; | 78 D3DCOLOR d3d_border_color_; |
| 79 ResourceID texture_id_; | 79 ResourceId texture_id_; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace command_buffer | 82 } // namespace command_buffer |
| 83 } // namespace o3d | 83 } // namespace o3d |
| 84 | 84 |
| 85 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ | 85 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ |
| OLD | NEW |