Base class for textures.
More...
#include <TextureBase.hpp>
|
int | width = 0 |
| Width in pixels.
|
|
int | height = 0 |
| Height in pixels.
|
|
unsigned | handle = 0 |
| Graphics API handle.
|
|
TextureWrap | wrap = TextureWrap::Repeat |
| Wrapping controls how coordinates outside 0-1 are interpreted.
|
|
TextureFilter | filter = TextureFilter::Nearest |
| Filtering mode.
|
|
Vec4 | scaleOffset { 1, 1, 0, 0 } |
| Scale (tiling) and offset.
|
|
Mipmaps | mipmaps = Mipmaps::None |
| Mipmaps.
|
|
float | anisotropy = 1 |
| Anisotropy.
|
|
ColorSpace | colorSpace = ColorSpace::RGB |
| Color space.
|
|
bool | opaque = true |
| Is the texture opaque.
|
|
bool | isRenderTexture = false |
| Is the texture a render texture.
|
|
float ae3d::TextureBase::GetAnisotropy |
( |
| ) |
const |
|
inline |
ColorSpace ae3d::TextureBase::GetColorSpace |
( |
| ) |
const |
|
inline |
TextureFilter ae3d::TextureBase::GetFilter |
( |
| ) |
const |
|
inline |
int ae3d::TextureBase::GetHeight |
( |
| ) |
const |
|
inline |
unsigned ae3d::TextureBase::GetID |
( |
| ) |
const |
|
inline |
Mipmaps ae3d::TextureBase::GetMipmaps |
( |
| ) |
const |
|
inline |
const Vec4& ae3d::TextureBase::GetScaleOffset |
( |
| ) |
const |
|
inline |
- Returns
- Scale and offset. x: scale x, y: scale y, z: offset x, w: offset y.
int ae3d::TextureBase::GetWidth |
( |
| ) |
const |
|
inline |
TextureWrap ae3d::TextureBase::GetWrap |
( |
| ) |
const |
|
inline |
bool ae3d::TextureBase::IsOpaque |
( |
| ) |
const |
|
inline |
- Returns
- True, if the texture does not contain an alpha channel.
bool ae3d::TextureBase::IsRenderTexture |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: