![]() |
Aether3D Game Engine
|
2D texture. More...
#include <Texture2D.hpp>
Public Member Functions | |
void | Load (const FileSystem::FileContentsData &textureData, TextureWrap wrap, TextureFilter filter, Mipmaps mipmaps, ColorSpace colorSpace, float anisotropy) |
void | LoadFromAtlas (const FileSystem::FileContentsData &atlasTextureData, const FileSystem::FileContentsData &atlasMetaData, const char *textureName, TextureWrap wrap, TextureFilter filter, ColorSpace colorSpace, float anisotropy) |
![]() | |
unsigned | GetID () const |
ColorSpace | GetColorSpace () 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 |
bool | IsRenderTexture () const |
Static Public Member Functions | |
static Texture2D * | GetDefaultTexture () |
Gets a default texture that is always available after System::LoadBuiltinAssets(). | |
Additional Inherited Members | |
![]() | |
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. | |
2D texture.
void ae3d::Texture2D::Load | ( | const FileSystem::FileContentsData & | textureData, |
TextureWrap | wrap, | ||
TextureFilter | filter, | ||
Mipmaps | mipmaps, | ||
ColorSpace | colorSpace, | ||
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 |
colorSpace | Color space. |
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, | ||
ColorSpace | colorSpace, | ||
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. |
colorSpace | Color space. |
anisotropy | Anisotropy. Value range is 1-16 depending on support. |