#include <vtkOpenGLTexture.h>
vtkOpenGLTexture is a concrete implementation of the abstract class vtkTexture. vtkOpenGLTexture interfaces to the OpenGL rendering library.
Definition at line 34 of file vtkOpenGLTexture.h.
Public Types | |
typedef vtkTexture | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
void | Load (vtkRenderer *ren) |
void | ReleaseGraphicsResources (vtkWindow *) |
virtual long | GetIndex () |
Static Public Member Functions | |
static vtkOpenGLTexture * | New () |
static int | IsTypeOf (const char *type) |
static vtkOpenGLTexture * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkOpenGLTexture () | |
~vtkOpenGLTexture () | |
unsigned char * | ResampleToPowerOfTwo (int &xsize, int &ysize, unsigned char *dptr, int bpp) |
Protected Attributes | |
vtkTimeStamp | LoadTime |
long | Index |
vtkWeakPointer< vtkRenderWindow > | RenderWindow |
vtkOpenGLTexture::vtkOpenGLTexture | ( | ) | [protected] |
vtkOpenGLTexture::~vtkOpenGLTexture | ( | ) | [protected] |
static vtkOpenGLTexture* vtkOpenGLTexture::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTexture.
virtual const char* vtkOpenGLTexture::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkTexture.
static int vtkOpenGLTexture::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkTexture.
virtual int vtkOpenGLTexture::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkTexture.
static vtkOpenGLTexture* vtkOpenGLTexture::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkTexture.
virtual void vtkOpenGLTexture::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkTexture.
void vtkOpenGLTexture::Load | ( | vtkRenderer * | ren | ) | [virtual] |
Implement base class method.
Reimplemented from vtkTexture.
void vtkOpenGLTexture::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
Release any graphics resources that are being consumed by this texture. The parameter window could be used to determine which graphic resources to release. Using the same texture object in multiple render windows is NOT currently supported.
Reimplemented from vtkTexture.
virtual long vtkOpenGLTexture::GetIndex | ( | ) | [virtual] |
Get the openGL texture name to which this texture is bound. This is available only if GL version >= 1.1
unsigned char* vtkOpenGLTexture::ResampleToPowerOfTwo | ( | int & | xsize, | |
int & | ysize, | |||
unsigned char * | dptr, | |||
int | bpp | |||
) | [protected] |
vtkTimeStamp vtkOpenGLTexture::LoadTime [protected] |
Definition at line 64 of file vtkOpenGLTexture.h.
long vtkOpenGLTexture::Index [protected] |
Definition at line 65 of file vtkOpenGLTexture.h.
vtkWeakPointer<vtkRenderWindow> vtkOpenGLTexture::RenderWindow [protected] |
Definition at line 66 of file vtkOpenGLTexture.h.