23 #ifndef vtkOpenGLTexture_h
24 #define vtkOpenGLTexture_h
26 #include "vtkRenderingOpenGL2Module.h"
30 VTK_ABI_NAMESPACE_BEGIN
74 vtkGetMacro(IsDepthTexture,
int);
75 vtkSetMacro(IsDepthTexture,
int);
82 vtkGetMacro(TextureType,
int);
83 vtkSetMacro(TextureType,
int);
114 int PrevBlendParams[4];
118 int& xsize,
int& ysize,
unsigned char* dptr,
int bpp,
int maxDimGL);
125 VTK_ABI_NAMESPACE_END
a simple class to control print indentation
void Load(vtkRenderer *) override
Implement base class method.
int GetTextureUnit() override
Return the texture unit used for this texture.
void CopyTexImage(int x, int y, int width, int height)
copy the renderers read buffer into this texture
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this texture.
unsigned char * ResampleToPowerOfTwo(int &xsize, int &ysize, unsigned char *dptr, int bpp, int maxDimGL)
int IsTranslucent() override
Is this Texture Translucent? returns false (0) if the texture is either fully opaque or has only full...
void PostRender(vtkRenderer *) override
Cleans up after the texture rendering to restore the state of the graphics context.
void SetTextureObject(vtkTextureObject *)
void Render(vtkRenderer *ren) override
Renders a texture map.
vtkWeakPointer< vtkRenderWindow > RenderWindow
~vtkOpenGLTexture() override
vtkTextureObject * TextureObject
bool ExternalTextureObject
static vtkOpenGLTexture * New()
create a window for renderers to draw into
abstract specification for renderers
abstracts an OpenGL texture object.
handles properties associated with a texture map
record modification and/or execution time
window superclass for vtkRenderWindow