25 #ifndef __vtkTextureObject_h
26 #define __vtkTextureObject_h
28 #include "vtkRenderingOpenGLModule.h"
52 NumberOfDepthTextureCompareFunctions
61 NumberOfDepthTextureModes
84 NumberOfMinificationModes
116 vtkGetMacro(Width,
unsigned int);
117 vtkGetMacro(Height,
unsigned int);
118 vtkGetMacro(Depth,
unsigned int);
119 vtkGetMacro(Components,
int);
122 vtkGetMacro(NumberOfDimensions,
int);
126 vtkGetMacro(Target,
unsigned int);
131 vtkGetMacro(Handle,
unsigned int);
147 void SendParameters();
157 bool Create1D(
int numComps,
159 bool shaderSupportsTextureInt);
166 bool Create2D(
unsigned int width,
unsigned int height,
int numComps,
168 bool shaderSupportsTextureInt);
174 bool CreateDepth(
unsigned int width,
183 bool CreateDepthFromRaw(
unsigned int width,
192 bool AllocateDepth(
unsigned int width,
unsigned int height,
198 bool Allocate1D(
unsigned int width,
int numComps,
int vtkType);
203 bool Allocate2D(
unsigned int width,
unsigned int height,
int numComps,
210 bool Allocate3D(
unsigned int width,
unsigned int height,
211 unsigned int depth,
int numComps,
220 bool Create3D(
unsigned int width,
unsigned int height,
unsigned int depth,
222 bool shaderSupportsTextureInt);
230 bool Create2D(
unsigned int width,
unsigned int height,
int numComps,
232 bool shaderSupportsTextureInt);
233 bool Create3D(
unsigned int width,
unsigned int height,
unsigned int depth,
234 int numComps,
int vtktype,
235 bool shaderSupportsTextureInt);
247 unsigned int GetInternalFormat(
int vtktype,
int numComps,
248 bool shaderSupportsTextureInt);
249 unsigned int GetFormat(
int vtktype,
int numComps,
250 bool shaderSupportsTextureInt);
256 vtkGetMacro(WrapS,
int);
257 vtkSetMacro(WrapS,
int);
264 vtkGetMacro(WrapT,
int);
265 vtkSetMacro(WrapT,
int);
272 vtkGetMacro(WrapR,
int);
273 vtkSetMacro(WrapR,
int);
282 vtkGetMacro(MinificationFilter,
int);
283 vtkSetMacro(MinificationFilter,
int);
289 vtkGetMacro(LinearMagnification,
bool);
290 vtkSetMacro(LinearMagnification,
bool);
296 vtkSetVector4Macro(BorderColor,
float);
297 vtkGetVector4Macro(BorderColor,
float);
304 vtkSetMacro(Priority,
float);
305 vtkGetMacro(Priority,
float);
311 vtkSetMacro(MinLOD,
float);
312 vtkGetMacro(MinLOD,
float);
318 vtkSetMacro(MaxLOD,
float);
319 vtkGetMacro(MaxLOD,
float);
326 vtkSetMacro(BaseLevel,
int);
327 vtkGetMacro(BaseLevel,
int);
334 vtkSetMacro(MaxLevel,
int);
335 vtkGetMacro(MaxLevel,
int);
345 vtkGetMacro(DepthTextureCompare,
bool);
346 vtkSetMacro(DepthTextureCompare,
bool);
360 vtkGetMacro(DepthTextureCompareFunction,
int);
361 vtkSetMacro(DepthTextureCompareFunction,
int);
370 vtkGetMacro(DepthTextureMode,
int);
371 vtkSetMacro(DepthTextureMode,
int);
377 vtkGetMacro(GenerateMipmap,
bool);
378 vtkSetMacro(GenerateMipmap,
bool);
404 void CopyToFrameBuffer(
int srcXmin,
424 void CopyFromFrameBuffer(
int srcXmin,
442 void CreateTexture();
445 void DestroyTexture();
467 float BorderColor[4];