Go to the documentation of this file.
21 #ifndef GNASH_GNASHTEXTURE_H
22 #define GNASH_GNASHTEXTURE_H
35 unsigned int _internal_format;
43 {
return _internal_format; }
54 unsigned int _texture;
59 unsigned int old_texture;
60 unsigned int was_enabled : 1;
61 unsigned int was_bound : 1;
93 {
return _format.internal_format(); }
97 {
return _format.format(); }
112 void update(
const std::uint8_t *
data);
std::string name
Definition: LocalConnection_as.cpp:149
@ height
Definition: klash_part.cpp:329
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
virtual ~GnashTexture()
Definition: GnashTexture.cpp:128
void release()
Release texture.
Definition: GnashTexture.cpp:196
unsigned int flags() const
Return texture flags.
Definition: GnashTexture.h:76
@ n
Definition: GnashKey.h:160
unsigned int internal_format() const
Return GL internal format.
Definition: GnashTexture.h:92
std::uint32_t ts
Definition: LocalConnection_as.cpp:150
unsigned int height() const
Return texture height.
Definition: GnashTexture.h:84
void log_error(StringType msg, Args... args)
Definition: log.h:283
@ GNASH_TEXTURE_VAAPI
Definition: GnashTexture.h:30
unsigned int _flags
Definition: GnashTexture.h:65
#define bug
Definition: GnashTexture.cpp:32
type
Definition: GnashKey.h:330
bool bind()
Bind texture to a texturing target.
Definition: GnashTexture.cpp:167
#define D(x)
Definition: GnashTexture.cpp:30
GnashTexture(unsigned int width, unsigned int height, image::ImageType type)
Definition: GnashTexture.cpp:114
unsigned int width() const
Return texture width.
Definition: GnashTexture.h:80
unsigned int internal_format() const
Return GL internal format.
Definition: GnashTexture.h:42
GnashTextureFormat(image::ImageType type)
Definition: GnashTexture.cpp:97
unsigned int texture() const
Return GL texture.
Definition: GnashTexture.h:88
OpenGL texture abstraction.
Definition: GnashTexture.h:51
unsigned int format() const
Return GL format.
Definition: GnashTexture.h:96
pixel_iterator< T > end(GnashImage &im)
Definition: ImageIterators.h:198
OpenGL texture format.
Definition: GnashTexture.h:34
@ TYPE_RGB
Definition: GnashImage.h:49
#define DSOEXPORT
Definition: dsodefs.h:55
ImageType
The types of images handled in Gnash.
Definition: GnashImage.h:47
unsigned int format() const
Return GL format.
Definition: GnashTexture.h:46
void update(const std::uint8_t *data)
Copy texture data from a buffer.
Definition: GnashTexture.cpp:207
@ width
Definition: klash_part.cpp:329
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
@ TYPE_RGBA
Definition: GnashImage.h:50