Aether3D Game Engine
Public Member Functions | Protected Attributes | List of all members
ae3d::TextureBase Class Reference

Base class for textures. More...

#include <TextureBase.hpp>

Inheritance diagram for ae3d::TextureBase:
Inheritance graph
[legend]
Collaboration diagram for ae3d::TextureBase:
Collaboration graph
[legend]

Public Member Functions

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 Vec4GetScaleOffset () const
 
bool IsOpaque () const
 
bool IsRenderTexture () const
 

Protected Attributes

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.
 

Detailed Description

Base class for textures.

Member Function Documentation

float ae3d::TextureBase::GetAnisotropy ( ) const
inline
Returns
Anisotropy.
ColorSpace ae3d::TextureBase::GetColorSpace ( ) const
inline
Returns
Color space.
TextureFilter ae3d::TextureBase::GetFilter ( ) const
inline
Returns
Filtering mode
int ae3d::TextureBase::GetHeight ( ) const
inline
Returns
Width in pixels.
unsigned ae3d::TextureBase::GetID ( ) const
inline
Returns
id.
Mipmaps ae3d::TextureBase::GetMipmaps ( ) const
inline
Returns
Mipmap usage.
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
Returns
Width in pixels.
TextureWrap ae3d::TextureBase::GetWrap ( ) const
inline
Returns
Wrapping mode
bool ae3d::TextureBase::IsOpaque ( ) const
inline
Returns
True, if the texture does not contain an alpha channel.
bool ae3d::TextureBase::IsRenderTexture ( ) const
inline
Returns
True, if the texture is a RenderTexture.

The documentation for this class was generated from the following file: