VoltAir
|
Texture abstract base class. More...
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... | |
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.
|
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.
|
pure virtual |
Returns the height of this Texture in texels.
Implemented in DirectTexture.
|
pure virtual |
Returns the wrap mode to apply to the Texture horizontally.
Implemented in DirectTexture.
|
pure virtual |
Returns the magnification filter mode applied to this Texture.
Implemented in DirectTexture.
|
pure virtual |
Returns the minification filter mode applied to this Texture.
Implemented in DirectTexture.
|
pure virtual |
Returns the wrap mode to apply to the Texture vertically.
Implemented in DirectTexture.
|
pure virtual |
Returns the width of this Texture in texels.
Implemented in DirectTexture.
|
pure virtual |
Sets the wrap mode to apply to the Texture horizontally.
value | Wrap mode |
Implemented in DirectTexture.
|
pure virtual |
Sets the magnification filter mode applied to this Texture.
value | Filter mode to set |
Implemented in DirectTexture.
|
pure virtual |
Sets the minification filter mode applied to this Texture.
value | Filter mode to set |
Implemented in DirectTexture.
|
pure virtual |
Sets the wrap mode to apply to the Texture vertically.
value | Wrap mode |
Implemented in DirectTexture.
|
pure virtual |
Unbinds this Texture from the current active texture stage.
Implemented in DirectTexture.