VTK  9.4.20241222
vtkOpenGLArrayTextureBufferAdapter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
9#ifndef vtkOpenGLArrayTextureBufferAdapter_h
10#define vtkOpenGLArrayTextureBufferAdapter_h
11
12#include "vtkDataArray.h"
14#include "vtkRenderingOpenGL2Module.h"
15#include "vtkSmartPointer.h"
16#include "vtkTextureObject.h"
17
18#include <vector>
19
20VTK_ABI_NAMESPACE_BEGIN
22
23class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLArrayTextureBufferAdapter
24{
25public:
26 std::vector<vtkSmartPointer<vtkDataArray>> Arrays;
33
36 vtkDataArray* array, bool asScalars, bool* integerTexture = nullptr);
39 const vtkOpenGLArrayTextureBufferAdapter&) = default;
40
41 void Upload(vtkOpenGLRenderWindow* renderWindow, bool force = false);
42};
43
44VTK_ABI_NAMESPACE_END
45#endif
46// Need to skip header testing since we do not inherit vtkObject:
47// VTK-HeaderTest-Exclude: vtkOpenGLArrayTextureBufferAdapter.h
abstract superclass for arrays of numeric data
Interfaces vtkDataArray to an OpenGL texture buffer.
void Upload(vtkOpenGLRenderWindow *renderWindow, bool force=false)
vtkOpenGLArrayTextureBufferAdapter(const vtkOpenGLArrayTextureBufferAdapter &)=default
vtkOpenGLArrayTextureBufferAdapter & operator=(const vtkOpenGLArrayTextureBufferAdapter &)=default
std::vector< vtkSmartPointer< vtkDataArray > > Arrays
vtkOpenGLArrayTextureBufferAdapter(vtkDataArray *array, bool asScalars, bool *integerTexture=nullptr)
vtkSmartPointer< vtkOpenGLBufferObject > Buffer
OpenGL rendering window.
Hold a reference to a vtkObjectBase instance.