1.26 <GdkGLTexture>

Class: <GdkGLTexture>

It derives from <GdkTexture>.

A <GdkTexture> representing a GL texture object.

Procedures

Procedure: gltexture:new context id width height destroy [data] ⇒ %return

Creates a new texture for an existing GL texture.

Note that the GL texture must not be modified until destroy is called, which will happen when the GdkTexture object is finalized, or due to an explicit call of gltexture:release.

context

Passed: a <GdkGLContext>.

a <GdkGLContext>

id

Passed: an unsigned 32-bit integer.

the ID of a texture that was created with context

width

Passed: a 32-bit integer.

the nominal width of the texture

height

Passed: a 32-bit integer.

the nominal height of the texture

destroy

Passed: a procedure.

a destroy notify that will be called when the GL resources are released

See GDestroyNotify for how it is called.

data

Passed, or left out: a foreign pointer, or a bytevector, or #f.

data that gets passed to destroy

%return

Returned: a <GdkGLTexture>.

A newly-created <GdkTexture>

Method: gltexture:release self
Method: release self

Releases the GL resources held by a <GdkGLTexture>.

The texture contents are still available via the texture:download function, after this function has been called.

self

Passed: a <GdkGLTexture>.

a <GdkTexture> wrapping a GL texture