14 #ifndef vtkOpenGLTexture_h
15 #define vtkOpenGLTexture_h
17 #include "vtkRenderingOpenGL2Module.h"
22 VTK_ABI_NAMESPACE_BEGIN
63 void CopyTexImage(
int x,
int y,
int width,
int height);
69 vtkGetMacro(IsDepthTexture,
int);
70 vtkSetMacro(IsDepthTexture,
int);
77 vtkGetMacro(TextureType,
int);
78 vtkSetMacro(TextureType,
int);
84 void SetTextureObject(vtkTextureObject*);
89 int GetTextureUnit() override;
97 int IsTranslucent() override;
101 ~vtkOpenGLTexture() override;
106 bool ExternalTextureObject;
107 vtkTextureObject* TextureObject;
111 int PrevBlendParams[4];
114 unsigned char* ResampleToPowerOfTwo(
115 int& xsize,
int& ysize,
unsigned char* dptr,
int bpp,
int maxDimGL);
118 vtkOpenGLTexture(const vtkOpenGLTexture&) = delete;
119 void operator=(const vtkOpenGLTexture&) = delete;
122 #define vtkOpenGLTexture_OVERRIDE_ATTRIBUTES vtkOpenGLTexture::CreateOverrideAttributes()
123 VTK_ABI_NAMESPACE_END
Attribute for vtkObjectFactory overrides.
virtual void PostRender(vtkRenderer *)
Cleans up after the texture rendering to restore the state of the graphics context.
record modification and/or execution time
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this texture.
abstract specification for renderers
virtual void Load(vtkRenderer *)
Abstract interface to renderer.
virtual void Render(vtkRenderer *ren)
Renders a texture map.
window superclass for vtkRenderWindow
a simple class to control print indentation
a weak reference to a vtkObject.
static vtkTexture * New()
handles properties associated with a texture map
#define VTK_MARSHALEXCLUDE(reason)
abstracts an OpenGL texture object.
create a window for renderers to draw into
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL