![]() |
Aether3D Game Engine
|
2D texture. More...
#include <Texture2D.hpp>


Public Member Functions | |
| void | Load (const FileSystem::FileContentsData &textureData, TextureWrap wrap, TextureFilter filter, Mipmaps mipmaps, float anisotropy) |
| void | LoadFromAtlas (const FileSystem::FileContentsData &atlasTextureData, const FileSystem::FileContentsData &atlasMetaData, const char *textureName, TextureWrap wrap, TextureFilter filter, float anisotropy) |
Public Member Functions inherited from ae3d::TextureBase | |
| unsigned | GetID () const |
| float | GetAnisotropy () const |
| int | GetWidth () const |
| int | GetHeight () const |
| TextureWrap | GetWrap () const |
| TextureFilter | GetFilter () const |
| Mipmaps | GetMipmaps () const |
| const Vec4 & | GetScaleOffset () const |
| bool | IsOpaque () const |
Static Public Member Functions | |
| static const Texture2D * | GetDefaultTexture () |
| Gets a default texture that is always available after System::LoadBuiltinAssets(). | |
Additional Inherited Members | |
Protected Attributes inherited from ae3d::TextureBase | |
| 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. | |
| Mipmaps | mipmaps = Mipmaps::None |
| Mipmaps. | |
| Vec4 | scaleOffset { 1, 1, 0, 0 } |
| Scale (tiling) and offset. | |
| bool | opaque = true |
| Is the texture opaque. | |
| float | anisotropy = 1 |
| Anisotropy. | |
2D texture.
| void ae3d::Texture2D::Load | ( | const FileSystem::FileContentsData & | textureData, |
| TextureWrap | wrap, | ||
| TextureFilter | filter, | ||
| Mipmaps | mipmaps, | ||
| float | anisotropy | ||
| ) |
| textureData | Texture image data. File format must be dds, png, tga, jpg, bmp or bmp. |
| wrap | Wrap mode. |
| filter | Filter mode. |
| mipmaps | Mipmaps |
| anisotropy | Anisotropy. Value range is 1-16 depending on support. |
| void ae3d::Texture2D::LoadFromAtlas | ( | const FileSystem::FileContentsData & | atlasTextureData, |
| const FileSystem::FileContentsData & | atlasMetaData, | ||
| const char * | textureName, | ||
| TextureWrap | wrap, | ||
| TextureFilter | filter, | ||
| float | anisotropy | ||
| ) |
| atlasTextureData | Atlas texture image data. File format must be dds, png, tga, jpg, bmp or bmp. |
| atlasMetaData | Atlas metadata. Format is Ogre/CEGUI. Example atlas tool: Texture Packer. |
| textureName | Name of the texture in atlas. |
| wrap | Wrap mode. |
| filter | Filter mode. |
| anisotropy | Anisotropy. Value range is 1-16 depending on support. |
1.8.9.1