Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::GnashVaapiTexture Class Reference

OpenGL texture abstraction. More...

#include <GnashVaapiTexture.h>

Inheritance diagram for gnash::GnashVaapiTexture:
gnash::GnashTexture

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
 

Detailed Description

OpenGL texture abstraction.

Constructor & Destructor Documentation

§ GnashVaapiTexture()

gnash::GnashVaapiTexture::GnashVaapiTexture ( unsigned int  width,
unsigned int  height,
image::ImageType  type 
)

§ ~GnashVaapiTexture()

gnash::GnashVaapiTexture::~GnashVaapiTexture ( )

Member Function Documentation

§ update()

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.

Parameters
surfaceVA surface to copy data from.

The documentation for this class was generated from the following files: