|
Gnash
0.8.11dev
|
OpenGL texture abstraction. More...
#include <GnashVaapiTexture.h>
Public Member Functions | |
| GnashVaapiTexture (unsigned int width, unsigned int height, image::ImageType type) | |
| ~GnashVaapiTexture () | |
| void | update (std::shared_ptr< VaapiSurface > surface) |
| Copy texture data from a VA surface. More... | |
Public Member Functions inherited from gnash::GnashTexture | |
| GnashTexture (unsigned int width, unsigned int height, image::ImageType type) | |
| virtual | ~GnashTexture () |
| unsigned int | flags () const |
| Return texture flags. More... | |
| unsigned int | width () const |
| Return texture width. More... | |
| unsigned int | height () const |
| Return texture height. More... | |
| unsigned int | texture () const |
| Return GL texture. More... | |
| unsigned int | internal_format () const |
| Return GL internal format. More... | |
| unsigned int | format () const |
| Return GL format. More... | |
| bool | bind () |
| Bind texture to a texturing target. More... | |
| void | release () |
| Release texture. More... | |
| void | update (const std::uint8_t *data) |
| Copy texture data from a buffer. More... | |
Additional Inherited Members | |
Protected Attributes inherited from gnash::GnashTexture | |
| unsigned int | _flags |
OpenGL texture abstraction.
| gnash::GnashVaapiTexture::GnashVaapiTexture | ( | unsigned int | width, |
| unsigned int | height, | ||
| image::ImageType | type | ||
| ) |
| gnash::GnashVaapiTexture::~GnashVaapiTexture | ( | ) |
| void gnash::GnashVaapiTexture::update | ( | std::shared_ptr< VaapiSurface > | surface | ) |
Copy texture data from a VA surface.
Note that this surface MUST have the same _pitch, or unexpected things will happen.
| surface | VA surface to copy data from. |
1.8.12