47 std::vector<vtkSmartPointer<vtkDataArray>>
Arrays;
57 vtkDataArray* array,
bool asScalars,
bool* integerTexture =
nullptr);
74 void SetUploaded(
bool uploaded) { this->Uploaded = uploaded; }
116 struct NarrowedArrayInfo
118 std::size_t ByteLength = 0;
128 NarrowedArrayInfo AppendNarrowed(
vtkDataArray* array, std::vector<unsigned char>& dest)
const;
132 struct SubArrayUpload
134 const void* SourceId =
nullptr;
136 std::size_t ByteOffset = 0;
137 std::size_t ByteLength = 0;
141 struct UploadedLayout
143 std::vector<SubArrayUpload> Subs;
144 std::size_t TotalBytes = 0;
148 bool Scalars =
false;
151 UploadedLayout LastUpload;
153 bool Uploaded =
false;
155 bool OwnsTexture =
true;
157 bool PendingReset =
false;
vtkOpenGLBufferObject::ObjectUsage BufferUsage
void SetPendingReset(bool pendingReset)
Get/set the pending-reset flag used to recycle an adapter across rebuild cycles.
void Upload(vtkOpenGLRenderWindow *renderWindow, bool force=false)
vtkSmartPointer< vtkTextureObject > Texture
void ReleaseGraphicsResources(vtkWindow *window)
vtkOpenGLBufferObject::ObjectType BufferType
bool GetUploaded() const
Get/set the "already uploaded" guard.
bool GetOwnsTexture() const
Get/set who owns this adapter's Texture/Buffer.
vtkOpenGLArrayTextureBufferAdapter(const vtkOpenGLArrayTextureBufferAdapter &)=default
vtkOpenGLArrayTextureBufferAdapter & operator=(const vtkOpenGLArrayTextureBufferAdapter &)=default
std::vector< vtkSmartPointer< vtkDataArray > > Arrays
vtkOpenGLArrayTextureBufferAdapter(vtkDataArray *array, bool asScalars, bool *integerTexture=nullptr)
void SetOwnsTexture(bool ownsTexture)
Get/set who owns this adapter's Texture/Buffer.
vtkOpenGLArrayTextureBufferAdapter()
void SetUploaded(bool uploaded)
Get/set the "already uploaded" guard.
vtkSmartPointer< vtkOpenGLBufferObject > Buffer
bool GetPendingReset() const
Get/set the pending-reset flag used to recycle an adapter across rebuild cycles.