VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Member Functions | List of all members

Texture abstract base class. More...

Inheritance diagram for Texture:
DirectTexture

Public Member Functions

virtual void bind ()=0
 Binds this Texture to the current active texture stage. More...
 
virtual void unbind ()=0
 Unbinds this Texture from the current active texture stage. More...
 
virtual int getWidth () const =0
 Returns the width of this Texture in texels. More...
 
virtual int getHeight () const =0
 Returns the height of this Texture in texels. More...
 
virtual GLint getMagnificationFilter ()=0
 Returns the magnification filter mode applied to this Texture. More...
 
virtual void setMagnificationFilter (GLint value)=0
 Sets the magnification filter mode applied to this Texture. More...
 
virtual GLint getMinificationFilter ()=0
 Returns the minification filter mode applied to this Texture. More...
 
virtual void setMinificationFilter (GLint value)=0
 Sets the minification filter mode applied to this Texture. More...
 
virtual GLint getHorizontalWrapMode ()=0
 Returns the wrap mode to apply to the Texture horizontally. More...
 
virtual void setHorizontalWrapMode (GLint value)=0
 Sets the wrap mode to apply to the Texture horizontally. More...
 
virtual GLint getVerticalWrapMode ()=0
 Returns the wrap mode to apply to the Texture vertically. More...
 
virtual void setVerticalWrapMode (GLint value)=0
 Sets the wrap mode to apply to the Texture vertically. More...
 

Detailed Description

Texture abstract base class.

Textures can either be used on their own as wrappers around GL textures or in conjunction with Renderer. If used with Renderer, bind() and unbind() will be called as needed when selected.

Note
See OpenGLES documentation of glTexParameter() for a discussion of filter and wrap modes.

Member Function Documentation

virtual void Texture::bind ( )
pure virtual

Binds this Texture to the current active texture stage.

The active texture stage is selected through Renderer::selectTexture(), or a call to glActiveTexture().

Implemented in DirectTexture.

virtual int Texture::getHeight ( ) const
pure virtual

Returns the height of this Texture in texels.

Implemented in DirectTexture.

virtual GLint Texture::getHorizontalWrapMode ( )
pure virtual

Returns the wrap mode to apply to the Texture horizontally.

Implemented in DirectTexture.

virtual GLint Texture::getMagnificationFilter ( )
pure virtual

Returns the magnification filter mode applied to this Texture.

Implemented in DirectTexture.

virtual GLint Texture::getMinificationFilter ( )
pure virtual

Returns the minification filter mode applied to this Texture.

Implemented in DirectTexture.

virtual GLint Texture::getVerticalWrapMode ( )
pure virtual

Returns the wrap mode to apply to the Texture vertically.

Implemented in DirectTexture.

virtual int Texture::getWidth ( ) const
pure virtual

Returns the width of this Texture in texels.

Implemented in DirectTexture.

virtual void Texture::setHorizontalWrapMode ( GLint  value)
pure virtual

Sets the wrap mode to apply to the Texture horizontally.

Parameters
valueWrap mode

Implemented in DirectTexture.

virtual void Texture::setMagnificationFilter ( GLint  value)
pure virtual

Sets the magnification filter mode applied to this Texture.

Parameters
valueFilter mode to set

Implemented in DirectTexture.

virtual void Texture::setMinificationFilter ( GLint  value)
pure virtual

Sets the minification filter mode applied to this Texture.

Parameters
valueFilter mode to set

Implemented in DirectTexture.

virtual void Texture::setVerticalWrapMode ( GLint  value)
pure virtual

Sets the wrap mode to apply to the Texture vertically.

Parameters
valueWrap mode

Implemented in DirectTexture.

virtual void Texture::unbind ( )
pure virtual

Unbinds this Texture from the current active texture stage.

Implemented in DirectTexture.