|
| Texture (BtkTexture *t=nullptr) |
|
| Texture (const Texture &)=delete |
|
| Texture (Texture &&t) |
|
Size | size () const |
| Get the size(w and h) More...
|
|
int | w () const |
|
int | h () const |
|
bool | empty () const noexcept |
|
Texture & | operator= (BtkTexture *) |
|
Texture & | operator= (Texture &&) |
|
BtkTexture * | get () const noexcept |
|
void | update (const Rect *r, void *pixels, int pitch) |
| Update a texture's pixels. More...
|
|
void | lock (const Rect *rect, void **pixels, int *pitch) |
| Lock a Streaming Texture. More...
|
|
void | lock (const Rect &rect, void **pixels, int *pitch) |
|
void | lock (void **pixels, int *pitch) |
|
void | update (const Rect &r, void *pixels, int pitch) |
|
void | update (void *pixels, int pitch) |
|
void | unlock () |
| Unlock the texture. More...
|
|
Information | information () const |
| Get the texture's information. More...
|
|
◆ information()
◆ lock()
void Btk::Texture::lock |
( |
const Rect * |
rect, |
|
|
void ** |
pixels, |
|
|
int * |
pitch |
|
) |
| |
Lock a Streaming Texture.
- Parameters
-
rect | The area you want to lock(nullptr to all texture) |
pixels | The pixels pointer's pointer |
pitch | The texture's pixels pitch pointer |
◆ size()
Size Btk::Texture::size |
( |
| ) |
const |
|
inline |
Get the size(w and h)
- Returns
- W and H
◆ unlock()
void Btk::Texture::unlock |
( |
| ) |
|
◆ update()
void Btk::Texture::update |
( |
const Rect * |
r, |
|
|
void * |
pixels, |
|
|
int |
pitch |
|
) |
| |
Update a texture's pixels.
- Note
- This is a very slow operation
- Parameters
-
r | The area you want to update(nullptr to all texture) |
pixels | The pixels pointer |
pitch | The pixels pitch |
The documentation for this class was generated from the following files: