GLTexture

A GdkTexture representing a GL texture object.

Constructors

this
this(GdkGLTexture* gdkGLTexture, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(GLContext context, uint id, int width, int height, GDestroyNotify destroy, void* data)

Creates a new texture for an existing GL texture.

Members

Functions

getGLTextureStruct
GdkGLTexture* getGLTextureStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

release
void release()

Releases the GL resources held by a GdkGLTexture.

Static functions

getType
GType getType()

Variables

gdkGLTexture
GdkGLTexture* gdkGLTexture;

the main Gtk struct

Inherited Members

From Texture

gdkTexture
GdkTexture* gdkTexture;

the main Gtk struct

getTextureStruct
GdkTexture* getTextureStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin PaintableT!(GdkTexture)
Undocumented in source.
getType
GType getType()
download
void download(char[] data, size_t stride)

Downloads the @texture into local memory.

getHeight
int getHeight()

Returns the height of the @texture, in pixels.

getWidth
int getWidth()

Returns the width of @texture, in pixels.

saveToPng
bool saveToPng(string filename)

Store the given @texture to the @filename as a PNG file.

Meta