Method

GlyImagenext_frame

since: 1.0

Declaration [src]

GlyFrame*
gly_image_next_frame (
  GlyImage* image
  GError** error
)

Description [src]

Synchronously loads texture and information of the next frame.

For single still images, this can only be called once. For animated images, this function will loop to the first frame, when the last frame is reached.

Available since: 1.0

Return value

Type: GlyFrame

A new GlyFrame on success, or NULL with error filled in.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.