poll_renderer_dispatch


Description:

public void poll_renderer_dispatch (Renderer renderer, PollFD[] poll_fds)

This should be called whenever an application is woken up from going idle in its main loop.

The poll_fds array should contain a list of file descriptors matched with the events that occurred in revents. The events field is ignored. It is safe to pass in extra file descriptors that Cogl didn't request when calling poll_renderer_get_info or a shorter array missing some file descriptors that Cogl requested.

<note>If your application didn't originally create a Renderer manually then you can easily get a Renderer pointer by calling cogl_get_renderer.</note>

Parameters:

renderer

A Renderer

poll_fds

An array of PollFD<!-- -->s describing the events that have occurred since the application went idle.

n_poll_fds

The length of the poll_fds array.


Namespace: Cogl
Package: doc