GLTexture

A GdkTexture representing a GL texture object.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gdk.glcontext.GLContext context, uint id, int width, int height, glib.types.DestroyNotify destroy, void* data)

Creates a new texture for an existing GL texture.

Members

Functions

release
void release()

Releases the GL resources held by a gdk.gltexture.GLTexture.

self
GLTexture self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()

Inherited Members

From Texture

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Texture self()

Returns this, for use in with statements.

newForPixbuf
gdk.texture.Texture newForPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf)

Creates a new texture object representing the gdkpixbuf.pixbuf.Pixbuf.

newFromBytes
gdk.texture.Texture newFromBytes(glib.bytes.Bytes bytes)

Creates a new texture by loading an image from memory,

newFromFile
gdk.texture.Texture newFromFile(gio.file.File file)

Creates a new texture by loading an image from a file.

newFromFilename
gdk.texture.Texture newFromFilename(string path)

Creates a new texture by loading an image from a file.

newFromResource
gdk.texture.Texture newFromResource(string resourcePath)

Creates a new texture by loading an image from a resource.

getFormat
gdk.types.MemoryFormat getFormat()

Gets the memory format most closely associated with the data of the texture.

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.

saveToPngBytes
glib.bytes.Bytes saveToPngBytes()

Store the given texture in memory as a PNG file.

saveToTiff
bool saveToTiff(string filename)

Store the given texture to the filename as a TIFF file.

saveToTiffBytes
glib.bytes.Bytes saveToTiffBytes()

Store the given texture in memory as a TIFF file.