| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 sampler::AddressingMode addressing_w, | 58 sampler::AddressingMode addressing_w, |
| 59 sampler::FilteringMode mag_filter, | 59 sampler::FilteringMode mag_filter, |
| 60 sampler::FilteringMode min_filter, | 60 sampler::FilteringMode min_filter, |
| 61 sampler::FilteringMode mip_filter, | 61 sampler::FilteringMode mip_filter, |
| 62 unsigned int max_anisotropy); | 62 unsigned int max_anisotropy); |
| 63 | 63 |
| 64 // Sets the border color states. | 64 // Sets the border color states. |
| 65 void SetBorderColor(const RGBA &color); | 65 void SetBorderColor(const RGBA &color); |
| 66 | 66 |
| 67 // Sets the texture. | 67 // Sets the texture. |
| 68 void SetTexture(ResourceID texture) { texture_id_ = texture; } | 68 void SetTexture(ResourceId texture) { texture_id_ = texture; } |
| 69 | 69 |
| 70 GLuint gl_texture() const { return gl_texture_; } | 70 GLuint gl_texture() const { return gl_texture_; } |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 GLenum gl_wrap_s_; | 73 GLenum gl_wrap_s_; |
| 74 GLenum gl_wrap_t_; | 74 GLenum gl_wrap_t_; |
| 75 GLenum gl_wrap_r_; | 75 GLenum gl_wrap_r_; |
| 76 GLenum gl_mag_filter_; | 76 GLenum gl_mag_filter_; |
| 77 GLenum gl_min_filter_; | 77 GLenum gl_min_filter_; |
| 78 GLuint gl_max_anisotropy_; | 78 GLuint gl_max_anisotropy_; |
| 79 GLfloat gl_border_color_[4]; | 79 GLfloat gl_border_color_[4]; |
| 80 GLuint gl_texture_; | 80 GLuint gl_texture_; |
| 81 ResourceID texture_id_; | 81 ResourceId texture_id_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace command_buffer | 84 } // namespace command_buffer |
| 85 } // namespace o3d | 85 } // namespace o3d |
| 86 | 86 |
| 87 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_SAMPLER_GL_H_ | 87 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_SAMPLER_GL_H_ |
| OLD | NEW |