#include <texture.h>
|
| Texture (TextureManager *pManager=nullptr, TextureUnit textureUnit=TEXTURE_UNIT_BASE) |
|
| Texture (const Attribute &attribute, TextureType target, TextureManager *pManager=nullptr, TextureUnit textureUnit=TEXTURE_UNIT_BASE) |
|
virtual | ~Texture () |
|
bool | isManaged () |
|
bool | isManaged (TextureManager *pManager) |
|
void | manage (TextureManager *pManager) |
|
void | unmanage (TextureManager *pManager) |
|
void | operator++ () |
|
void | operator-- () |
|
bool | hasAttribute (TextureType uploadTarget) const |
|
const Attribute & | getAttribute (TextureType uploadTarget) |
|
void | setAttributesForTarget (const Attribute &attribute, TextureType target) |
|
TextureHandle | getHandle () const |
|
void | setTextureHandle (TextureHandle textureHandle) |
|
void | setTextureUnit (TextureUnit textureUnit) |
|
void | bind (TextureType target) |
|
void | setMinFilter (TextureFilterSetting minFilter, TextureType target) |
|
void | setMagFilter (TextureFilterSetting magFilter, TextureType target) |
|
void | setFilters (TextureFilterSetting minFilter, TextureFilterSetting magFilter, TextureType target) |
|
void | setWrapBehaviourS (TextureWrap wrapBehaviour, TextureType target) |
|
void | setWrapBehaviourT (TextureWrap wrapBehaviour, TextureType target) |
|
void | setWrapBehaviours (TextureWrap wrapBehaviourS, TextureWrap wrapBehaviourT, TextureType target) |
|
uint | getWidth (TextureType target=QUAD_MAP, uint level=0) |
|
uint | getHeight (TextureType target=QUAD_MAP, uint level=0) |
|
void | uploadPixels (Byte *pPixels, TextureType target, uint level=0) |
|
void | downloadPixels (Byte *pPixels, TextureType target, PixelFormat format) |
|
void | allocate (TextureType target, bool shaderAttachment) |
|
void | autoGenerateMipmaps (TextureType target) |
|
TextureUnit | getTextureUnit () const |
|
◆ UploadTargetMap
◆ Texture() [1/2]
- Parameters
-
The | manager to call when the reference count is decremented to zero. Pass nullptr for no callback. |
The | index of the texture-unit(ie engine) to render the texture. |
The | behavior of the horizontal(eg. u, s, or x dimension) for values outside the range {0,1} |
The | behavior of the vertical(eg. v, t, or y dimension) for values outside the range {0,1} |
The | interpolation filter for minification or scaled below 1(far-away). |
The | interpolation filter for magnification or scaled above 1(close-up). |
◆ Texture() [2/2]
- Parameters
-
The | manager to call when the reference count is decremented to zero. Pass nullptr for no callback. |
The | index of the texture-unit(ie engine) to render the texture. |
The | behavior of the horizontal(eg. u, s, or x dimension) for values outside the range {0,1} |
The | behavior of the vertical(eg. v, t, or y dimension) for values outside the range {0,1} |
The | interpolation filter for minification or scaled below 1(far-away). |
The | interpolation filter for magnification or scaled above 1(close-up). |
◆ ~Texture()
virtual Texture::~Texture |
( |
| ) |
|
|
virtual |
◆ allocate()
void Texture::allocate |
( |
TextureType | target, |
|
|
bool | shaderAttachment ) |
Allocates data for the given target. This will be on the order-of width * height * pixel-size of the format.
◆ autoGenerateMipmaps()
void Texture::autoGenerateMipmaps |
( |
TextureType | target | ) |
|
◆ bind()
◆ downloadPixels()
Exports a texture to a buffer of pixels.
- Parameters
-
An | allocated buffer determined by width, height, and number of bytes-per-pixel. |
◆ getAttribute()
◆ getHandle()
◆ getHeight()
◆ getTextureUnit()
◆ getWidth()
◆ hasAttribute()
bool Texture::hasAttribute |
( |
TextureType | uploadTarget | ) |
const |
◆ isDepthFormat()
static bool Texture::isDepthFormat |
( |
PixelFormat | format | ) |
|
|
inlinestatic |
◆ isManaged() [1/2]
bool Texture::isManaged |
( |
| ) |
|
|
inline |
◆ isManaged() [2/2]
/return True if this texture is being managed by the given TextureManager.
◆ manage()
◆ mipLevels()
static uint Texture::mipLevels |
( |
Attribute | attribute | ) |
|
|
inlinestatic |
◆ operator++()
void Texture::operator++ |
( |
| ) |
|
◆ operator--()
void Texture::operator-- |
( |
| ) |
|
◆ setAttributesForTarget()
◆ setFilters()
◆ setMagFilter()
◆ setMinFilter()
◆ setTextureHandle()
◆ setTextureUnit()
void Texture::setTextureUnit |
( |
TextureUnit | textureUnit | ) |
|
◆ setWrapBehaviourS()
◆ setWrapBehaviours()
◆ setWrapBehaviourT()
◆ unmanage()
◆ uploadPixels()
void Texture::uploadPixels |
( |
Byte * | pPixels, |
|
|
TextureType | target, |
|
|
uint | level = 0 ) |
◆ TextureImage
The documentation for this class was generated from the following file: