Render texture.
More...
#include <RenderTexture.hpp>
|
enum | DataType { UByte,
Float
} |
| Data type.
|
|
|
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.
|
|
void ae3d::RenderTexture::Create2D |
( |
int |
width, |
|
|
int |
height, |
|
|
DataType |
dataType, |
|
|
TextureWrap |
wrap, |
|
|
TextureFilter |
filter |
|
) |
| |
- Parameters
-
width | Width. |
height | Height. |
dataType | Data type. |
wrap | Wrapping mode. |
filter | Filtering mode. |
void ae3d::RenderTexture::CreateCube |
( |
int |
dimension, |
|
|
DataType |
dataType, |
|
|
TextureWrap |
wrap, |
|
|
TextureFilter |
filter |
|
) |
| |
- Parameters
-
dimension | Dimension. |
dataType | Data type. |
wrap | Wrapping mode. |
filter | Filtering mode. |
DataType ae3d::RenderTexture::GetDataType |
( |
| ) |
const |
|
inline |
bool ae3d::RenderTexture::IsCube |
( |
| ) |
const |
|
inline |
- Returns
- True, if the texture is a cube map.
The documentation for this class was generated from the following file: