MCPcopy Create free account
hub / github.com/Kitware/VTK / Upload

Method Upload

Rendering/OpenGL2/vtkOpenGLBufferObject.h:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154template <class T>
155inline 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
167template <class T>
168inline bool vtkOpenGLBufferObject::Upload(

Callers 15

UpdateBufferObjectsMethod · 0.45
BuildCellTexturesMethod · 0.45
BuildIBOMethod · 0.45
RenderTrianglesMethod · 0.45
PrepFullScreenVAOMethod · 0.45
GetTQuad2DVBOMethod · 0.45
RenderPieceStartMethod · 0.45
GlyphRenderInstancesMethod · 0.45

Calls 3

UploadInternalMethod · 0.95
emptyMethod · 0.45
sizeMethod · 0.45

Tested by 1