29 #ifndef __vtkPixelBufferObject_h
30 #define __vtkPixelBufferObject_h
84 vtkGetMacro(Usage,
int);
85 vtkSetMacro(Usage,
int);
96 unsigned int numtuples,
int comps,
vtkIdType increment)
98 unsigned int newdims[3];
99 newdims[0] = numtuples;
103 newinc[0] = increment;
106 return this->Upload3D(type, data, newdims, comps, newinc,0,0);
117 unsigned int dims[2],
121 unsigned int newdims[3];
122 newdims[0] = dims[0];
123 newdims[1] = dims[1];
126 newinc[0] = increments[0];
127 newinc[1] = increments[1];
129 return this->Upload3D(type, data, newdims, comps, newinc,0,0);
140 unsigned int dims[3],
int comps,
150 vtkGetMacro(Type,
int);
156 vtkGetMacro(Size,
unsigned int);
161 vtkGetMacro(Handle,
unsigned int);
172 unsigned int newdims[3];
177 newincrements[0] = increment;
178 newincrements[1] = 0;
179 newincrements[2] = 0;
180 return this->Download3D(type, data, newdims, numcomps, newincrements);
189 unsigned int dims[2],
192 unsigned int newdims[3];
193 newdims[0] = dims[0];
194 newdims[1] = dims[1];
197 newincrements[0] = increments[0];
198 newincrements[1] = increments[1];
199 newincrements[2] = 0;
200 return this->Download3D(type, data, newdims, numcomps, newincrements);
207 bool Download3D(
int type,
void*
data,
208 unsigned int dims[3],
215 { this->Bind(PACKED_BUFFER); }
219 { this->Bind(UNPACKED_BUFFER); }
233 void Bind(BufferType buffer);
237 void Allocate(
unsigned int size,
242 void ReleaseMemory();
261 void DestroyBuffer();
bool Upload1D(int type, void *data, unsigned int numtuples, int comps, vtkIdType increment)
bool Upload2D(int type, void *data, unsigned int dims[2], int comps, vtkIdType increments[2])
vtkWeakPointer< vtkRenderWindow > Context
abstract base class for most VTK objects
bool Download1D(int type, void *data, unsigned int dim, int numcomps, vtkIdType increment)
void BindToPackedBuffer()
bool Download2D(int type, void *data, unsigned int dims[2], int numcomps, vtkIdType increments[2])
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
abstracts an OpenGL pixel buffer object.
Interface class for querying and using OpenGL extensions.
create a window for renderers to draw into
void BindToUnPackedBuffer()
unsigned int BufferTarget