Go to the documentation of this file.
25 #ifndef vtkTextureObject_h
26 #define vtkTextureObject_h
55 NumberOfDepthTextureCompareFunctions
64 NumberOfDepthTextureModes
87 NumberOfMinificationModes
124 {
return this->Width*this->Height*this->Depth; }
177 bool shaderSupportsTextureInt);
186 bool shaderSupportsTextureInt);
229 unsigned int depth,
int numComps,
240 bool shaderSupportsTextureInt);
250 bool shaderSupportsTextureInt);
252 int numComps,
int vtktype,
253 bool shaderSupportsTextureInt);
266 bool shaderSupportsTextureInt);
268 bool shaderSupportsTextureInt);
342 { this->SetMagnificationFilter(
val?Linear:Nearest); }
346 {
return this->MagnificationFilter==Linear; }
443 bool requireTexFloat,
444 bool requireDepthFloat,
543 float BorderColor[4];
bool Allocate2D(unsigned int width, unsigned int height, int numComps, int vtkType)
bool Create1D(int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
bool Create3D(unsigned int width, unsigned int height, unsigned int depth, int numComps, int vtktype, bool shaderSupportsTextureInt)
static bool IsSupported(vtkRenderWindow *renWin)
vtkTimeStamp SendParametersTime
dynamic, self-adjusting array of float
record modification and/or execution time
vtkPixelBufferObject * Download()
VTKRENDERINGOPENGL_EXPORT PFNGLGENERATEMIPMAPPROC GenerateMipmap
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
bool SupportsTextureInteger
bool SupportsDepthBufferFloat
unsigned int GetFormat(int vtktype, int numComps, bool shaderSupportsTextureInt)
bool AllocateDepth(unsigned int width, unsigned int height, int internalFormat)
void Activate(unsigned int texUnit)
bool GetLinearMagnification()
vtkWeakPointer< vtkRenderWindow > Context
bool CreateDepth(unsigned int width, unsigned int height, int internalFormat, vtkPixelBufferObject *pbo)
unsigned int GetInternalFormat(int vtktype, int numComps, bool shaderSupportsTextureInt)
GLint GLint GLsizei GLsizei GLsizei depth
bool RequireDepthBufferFloat
Interface class for querying and using OpenGL extensions.
void SetContext(vtkRenderWindow *)
bool LoadRequiredExtensions(vtkRenderWindow *renWin)
bool RequireTextureInteger
bool Create2D(unsigned int width, unsigned int height, int numComps, int vtktype, bool shaderSupportsTextureInt)
a simple class to control print indentation
abstracts an OpenGL texture object.
static vtkTextureObject * New()
void CopyFromFrameBuffer(int srcXmin, int srcYmin, int dstXmin, int dstYmin, int width, int height)
bool Create3D(unsigned int width, unsigned int height, unsigned int depth, int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
void CopyToFrameBuffer(int srcXmin, int srcYmin, int srcXmax, int srcYmax, int dstXmin, int dstYmin, int width, int height)
#define vtkGetMacro(name, type)
void Deactivate(unsigned int texUnit)
bool Allocate1D(unsigned int width, int numComps, int vtkType)
GLint GLint GLsizei width
vtkSetMacro(IgnoreDriverBugs, bool)
vtkRenderWindow * GetContext()
#define vtkSetVector4Macro(name, type)
bool Allocate3D(unsigned int width, unsigned int height, unsigned int depth, int numComps, int vtkType)
bool Create2D(unsigned int width, unsigned int height, int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
bool SupportsTextureFloat
void PrintSelf(ostream &os, vtkIndent indent)
bool CreateDepthFromRaw(unsigned int width, unsigned int height, int internalFormat, int rawType, void *raw)
create a window for renderers to draw into
void SetLinearMagnification(bool val)
#define vtkGetVector4Macro(name, type)
int DepthTextureCompareFunction
abstracts an OpenGL pixel buffer object.
#define VTKRENDERINGOPENGL_EXPORT
GLint GLint GLsizei GLsizei height
static bool IsSupported(vtkRenderWindow *renWin, bool requireTexFloat, bool requireDepthFloat, bool requireTexInt)