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.
|
| |
|
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.
|
| |
| 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. |
| unsigned ae3d::RenderTexture::GetFBO |
( |
| ) |
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: