|
|
void | bind (uint stage) const |
| |
| bool | isValid () const |
| | Check if the TextureUnit is valid.
|
| |
|
TextureUnit & | operator= (const TextureUnit &other)=delete |
| |
| TextureUnit & | operator= (TextureUnit &&other) noexcept |
| | Move assignment operator.
|
| |
|
void | set (const bgfx::Memory *texture, const vcl::Point2i &sizes, const std::string &samplerName, bool hasMips, uint nLayers, bgfx::TextureFormat::Enum format=bgfx::TextureFormat::RGBA8, uint flags=BGFX_TEXTURE_NONE) |
| |
|
void | set (const void *data, const vcl::Point2i &sizes, const std::string &samplerName, bool hasMips=false, bgfx::ReleaseFn releaseFn=nullptr) |
| |
| void | swap (TextureUnit &other) |
| | Swap the content of this object with another TextureUnit object.
|
| |
| | TextureUnit ()=default |
| | Empty constructor.
|
| |
|
| TextureUnit (const TextureUnit &other)=delete |
| |
| | TextureUnit (TextureUnit &&other) noexcept |
| | Move constructor.
|
| |
| | ~TextureUnit () |
| | Destructor.
|
| |
◆ TextureUnit() [1/2]
| vcl::TextureUnit::TextureUnit |
( |
| ) |
|
|
default |
Empty constructor.
It creates an invalid TextureUnit object.
◆ TextureUnit() [2/2]
Move constructor.
The other TextureUnit is left in an invalid state.
- Parameters
-
◆ ~TextureUnit()
| vcl::TextureUnit::~TextureUnit |
( |
| ) |
|
|
inline |
◆ isValid()
| bool vcl::TextureUnit::isValid |
( |
| ) |
const |
|
inline |
◆ operator=()
Move assignment operator.
The other TextureUnit is left in an invalid state.
- Parameters
-
- Returns
- a reference to this object.
◆ swap()
Swap the content of this object with another TextureUnit object.
- Parameters
-
The documentation for this class was generated from the following file: