Function

PhocFrameCallback

[]

Declaration

gboolean
(* PhocFrameCallback) (
  PhocAnimatable* self,
  guint64 last_frame,
  gpointer user_data
)
[]

Description [src]

Callback type for adding a function to update animations. See phoc_animatable_add_frame_callback().

[]

Parameters

self

Type: PhocAnimatable

The animatable.

The data is owned by the caller of the function.
last_frame

Type: guint64

Time of the last frame in us.

user_data

Type: gpointer

User data passed when registering the callback.

The argument can be NULL.
The data is owned by the caller of the function.
[]

Return value

Type: gboolean

G_SOURCE_CONTINUE if the frame callback should continue to or G_SOURCE_REMOVE if the frame callback should be removed.