Name

ggiGetPixelFormat — Get a structure describing the format of a pixelvalue from a visual

Synopsis

#include <ggi/ggi.h>
ggi_pixelformat *ggiGetPixelFormat(vis); 
ggi_visual_t  vis;

Description

This function obtains the default pixel format for the given visual.

Return value

Returns a pointer to the ggi_pixelformat structure.

Modifying the structure returned is not allowed. Do not attempt to free the pointer returned.

Structures

See ggi/ggi.h or ggi_pixelformat(3) for details on the structure that is returned.

See Also

ggi_pixelformat(3), ggiMapColor(3)