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

A texture which points to a user managed GL texture object. More...

Inheritance diagram for DirectTexture:
Texture

Public Member Functions

 DirectTexture ()
 Creates a Texture which references the invalid texture object zero. More...
 
 DirectTexture (GLuint id)
 Creates a Texture which references the given texture object. More...
 
virtual ~DirectTexture ()
 Cleans up additional resources owned by this object. More...
 
virtual void bind () override
 Binds this Texture to the current active texture stage. More...
 
virtual void unbind () override
 Unbinds this Texture from the current active texture stage. More...
 
virtual int getWidth () const override
 Current unsupported. More...
 
virtual int getHeight () const override
 Current unsupported. More...
 
virtual GLint getMagnificationFilter () override
 Returns the magnification filter mode applied to this Texture. More...
 
virtual void setMagnificationFilter (GLint value) override
 Sets the magnification filter mode applied to this Texture. More...
 
virtual GLint getMinificationFilter () override
 Returns the minification filter mode applied to this Texture. More...
 
virtual void setMinificationFilter (GLint value) override
 Sets the minification filter mode applied to this Texture. More...
 
virtual GLint getHorizontalWrapMode () override
 Returns the wrap mode to apply to the Texture horizontally. More...
 
virtual void setHorizontalWrapMode (GLint value) override
 Sets the wrap mode to apply to the Texture horizontally. More...
 
virtual GLint getVerticalWrapMode () override
 Returns the wrap mode to apply to the Texture vertically. More...
 
virtual void setVerticalWrapMode (GLint value) override
 Sets the wrap mode to apply to the Texture vertically. More...
 

Detailed Description

A texture which points to a user managed GL texture object.

Note
The texture object is still logically managed by the creator, and will not be automatically destroyed by this wrapper.

Constructor & Destructor Documentation

DirectTexture::DirectTexture ( )

Creates a Texture which references the invalid texture object zero.

DirectTexture::DirectTexture ( GLuint  id)

Creates a Texture which references the given texture object.

Parameters
idGL texture object id
virtual DirectTexture::~DirectTexture ( )
virtual

Cleans up additional resources owned by this object.

Note
This destructor does not delete the referenced texture object.

Member Function Documentation

virtual void DirectTexture::bind ( )
overridevirtual

Binds this Texture to the current active texture stage.

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

Implements Texture.

virtual int DirectTexture::getHeight ( ) const
overridevirtual

Current unsupported.

Returns
Always returns 0

Implements Texture.

virtual GLint DirectTexture::getHorizontalWrapMode ( )
overridevirtual

Returns the wrap mode to apply to the Texture horizontally.

Implements Texture.

virtual GLint DirectTexture::getMagnificationFilter ( )
overridevirtual

Returns the magnification filter mode applied to this Texture.

Implements Texture.

virtual GLint DirectTexture::getMinificationFilter ( )
overridevirtual

Returns the minification filter mode applied to this Texture.

Implements Texture.

virtual GLint DirectTexture::getVerticalWrapMode ( )
overridevirtual

Returns the wrap mode to apply to the Texture vertically.

Implements Texture.

virtual int DirectTexture::getWidth ( ) const
overridevirtual

Current unsupported.

Returns
Always returns 0

Implements Texture.

virtual void DirectTexture::setHorizontalWrapMode ( GLint  value)
overridevirtual

Sets the wrap mode to apply to the Texture horizontally.

Parameters
valueWrap mode

Implements Texture.

virtual void DirectTexture::setMagnificationFilter ( GLint  value)
overridevirtual

Sets the magnification filter mode applied to this Texture.

Parameters
valueFilter mode to set

Implements Texture.

virtual void DirectTexture::setMinificationFilter ( GLint  value)
overridevirtual

Sets the minification filter mode applied to this Texture.

Parameters
valueFilter mode to set

Implements Texture.

virtual void DirectTexture::setVerticalWrapMode ( GLint  value)
overridevirtual

Sets the wrap mode to apply to the Texture vertically.

Parameters
valueWrap mode

Implements Texture.

virtual void DirectTexture::unbind ( )
overridevirtual

Unbinds this Texture from the current active texture stage.

Implements Texture.