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 // SamplerCB is an implementation of the Sampler object for command buffers. | 47 // SamplerCB is an implementation of the Sampler object for command buffers. |
48 class SamplerCB : public Sampler { | 48 class SamplerCB : public Sampler { |
49 public: | 49 public: |
50 SamplerCB(ServiceLocator* service_locator, RendererCB* renderer); | 50 SamplerCB(ServiceLocator* service_locator, RendererCB* renderer); |
51 virtual ~SamplerCB(); | 51 virtual ~SamplerCB(); |
52 | 52 |
53 // Sets the d3d texture and sampler states for the given sampler unit. | 53 // Sets the d3d texture and sampler states for the given sampler unit. |
54 void SetTextureAndStates(); | 54 void SetTextureAndStates(); |
55 | 55 |
56 // Gets the resource ID for this sampler. | 56 // Gets the resource ID for this sampler. |
57 command_buffer::ResourceID resource_id() const { return resource_id_; } | 57 command_buffer::ResourceId resource_id() const { return resource_id_; } |
58 | 58 |
59 private: | 59 private: |
60 RendererCB* renderer_; | 60 RendererCB* renderer_; |
61 command_buffer::ResourceID resource_id_; | 61 command_buffer::ResourceId resource_id_; |
62 DISALLOW_COPY_AND_ASSIGN(SamplerCB); | 62 DISALLOW_COPY_AND_ASSIGN(SamplerCB); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace o3d | 65 } // namespace o3d |
66 | 66 |
67 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_SAMPLER_CB_H_ | 67 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_SAMPLER_CB_H_ |
OLD | NEW |