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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 typedef WeakPointer<StreamBank> WeakPointerType; | 51 typedef WeakPointer<StreamBank> WeakPointerType; |
52 | 52 |
53 virtual ~StreamBank(); | 53 virtual ~StreamBank(); |
54 | 54 |
55 // The number of times streams have been added or removed from this stream | 55 // The number of times streams have been added or removed from this stream |
56 // bank. Can be used for caching. | 56 // bank. Can be used for caching. |
57 int change_count() const { | 57 int change_count() const { |
58 return change_count_; | 58 return change_count_; |
59 } | 59 } |
60 | 60 |
61 // True if all the streams on this streambank are renderable. | 61 // True if all the streams on this streambank are renderable. |
62 bool renderable() const { | 62 bool renderable() const { |
63 return renderable_; | 63 return renderable_; |
64 } | 64 } |
65 | 65 |
66 // Binds a field of a vertex buffer to the streambank and defines how the data | 66 // Binds a field of a vertex buffer to the streambank and defines how the data |
67 // in the buffer should be accessed and interpreted. The buffer of the field | 67 // in the buffer should be accessed and interpreted. The buffer of the field |
68 // must be of a compatible type otherwise the binding fails and the function | 68 // must be of a compatible type otherwise the binding fails and the function |
69 // returns false. | 69 // returns false. |
70 virtual bool SetVertexStream(Stream::Semantic semantic, | 70 virtual bool SetVertexStream(Stream::Semantic semantic, |
71 int semantic_index, | 71 int semantic_index, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 private: | 176 private: |
177 friend class IClassManager; | 177 friend class IClassManager; |
178 static ObjectBase::Ref Create(ServiceLocator* service_locator); | 178 static ObjectBase::Ref Create(ServiceLocator* service_locator); |
179 | 179 |
180 O3D_DECL_CLASS(ParamStreamBank, RefParamBase) | 180 O3D_DECL_CLASS(ParamStreamBank, RefParamBase) |
181 }; | 181 }; |
182 | 182 |
183 } // namespace o3d | 183 } // namespace o3d |
184 | 184 |
185 #endif // O3D_CORE_CROSS_STREAM_BANK_H_ | 185 #endif // O3D_CORE_CROSS_STREAM_BANK_H_ |
OLD | NEW |