| 153 | |
| 154 | template <class T> |
| 155 | inline bool vtkOpenGLBufferObject::Upload( |
| 156 | const T& array, vtkOpenGLBufferObject::ObjectType objectType) |
| 157 | { |
| 158 | if (array.empty()) |
| 159 | { |
| 160 | this->Error = "Refusing to upload empty array."; |
| 161 | return false; |
| 162 | } |
| 163 | |
| 164 | return this->UploadInternal(&array[0], array.size() * sizeof(typename T::value_type), objectType); |
| 165 | } |
| 166 | |
| 167 | template <class T> |
| 168 | inline bool vtkOpenGLBufferObject::Upload( |