25 #ifndef __vtkTextureObject_h
26 #define __vtkTextureObject_h
51 NumberOfDepthTextureCompareFunctions
60 NumberOfDepthTextureModes
83 NumberOfMinificationModes
115 vtkGetMacro(Width,
unsigned int);
116 vtkGetMacro(Height,
unsigned int);
117 vtkGetMacro(Depth,
unsigned int);
118 vtkGetMacro(Components,
int);
121 vtkGetMacro(NumberOfDimensions,
int);
125 vtkGetMacro(Target,
unsigned int);
130 vtkGetMacro(Handle,
unsigned int);
146 void SendParameters();
156 bool Create1D(
int numComps,
158 bool shaderSupportsTextureInt);
165 bool Create2D(
unsigned int width,
unsigned int height,
int numComps,
167 bool shaderSupportsTextureInt);
173 bool CreateDepth(
unsigned int width,
182 bool CreateDepthFromRaw(
unsigned int width,
191 bool AllocateDepth(
unsigned int width,
unsigned int height,
197 bool Allocate1D(
unsigned int width,
int numComps,
int vtkType);
202 bool Allocate2D(
unsigned int width,
unsigned int height,
int numComps,
209 bool Allocate3D(
unsigned int width,
unsigned int height,
210 unsigned int depth,
int numComps,
219 bool Create3D(
unsigned int width,
unsigned int height,
unsigned int depth,
221 bool shaderSupportsTextureInt);
229 bool Create2D(
unsigned int width,
unsigned int height,
int numComps,
231 bool shaderSupportsTextureInt);
232 bool Create3D(
unsigned int width,
unsigned int height,
unsigned int depth,
233 int numComps,
int vtktype,
234 bool shaderSupportsTextureInt);
246 unsigned int GetInternalFormat(
int vtktype,
int numComps,
247 bool shaderSupportsTextureInt);
248 unsigned int GetFormat(
int vtktype,
int numComps,
249 bool shaderSupportsTextureInt);
255 vtkGetMacro(WrapS,
int);
256 vtkSetMacro(WrapS,
int);
263 vtkGetMacro(WrapT,
int);
264 vtkSetMacro(WrapT,
int);
271 vtkGetMacro(WrapR,
int);
272 vtkSetMacro(WrapR,
int);
281 vtkGetMacro(MinificationFilter,
int);
282 vtkSetMacro(MinificationFilter,
int);
288 vtkGetMacro(LinearMagnification,
bool);
289 vtkSetMacro(LinearMagnification,
bool);
295 vtkSetVector4Macro(BorderColor,
float);
296 vtkGetVector4Macro(BorderColor,
float);
303 vtkSetMacro(Priority,
float);
304 vtkGetMacro(Priority,
float);
310 vtkSetMacro(MinLOD,
float);
311 vtkGetMacro(MinLOD,
float);
317 vtkSetMacro(MaxLOD,
float);
318 vtkGetMacro(MaxLOD,
float);
325 vtkSetMacro(BaseLevel,
int);
326 vtkGetMacro(BaseLevel,
int);
333 vtkSetMacro(MaxLevel,
int);
334 vtkGetMacro(MaxLevel,
int);
344 vtkGetMacro(DepthTextureCompare,
bool);
345 vtkSetMacro(DepthTextureCompare,
bool);
359 vtkGetMacro(DepthTextureCompareFunction,
int);
360 vtkSetMacro(DepthTextureCompareFunction,
int);
369 vtkGetMacro(DepthTextureMode,
int);
370 vtkSetMacro(DepthTextureMode,
int);
376 vtkGetMacro(GenerateMipmap,
bool);
377 vtkSetMacro(GenerateMipmap,
bool);
403 void CopyToFrameBuffer(
int srcXmin,
423 void CopyFromFrameBuffer(
int srcXmin,
441 void CreateTexture();
444 void DestroyTexture();
466 float BorderColor[4];
bool SupportsTextureFloat
abstract base class for most VTK objects
int DepthTextureCompareFunction
vtkWeakPointer< vtkRenderWindow > Context
record modification and/or execution time
vtkTimeStamp SendParametersTime
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.
abstracts an OpenGL texture object.
create a window for renderers to draw into
bool SupportsTextureInteger