pixel-format-attribute
Pixel formats
Prev:<pixel-format> ( world attributes -- pixel-format )
Next:invalid-pixel-format-attributes ( world attributes -- * )


Vocabulary
ui.pixel-formats

Inputs and outputs
pixel-formata pixel-format
attribute-nameone of the Pixel format attributes
valuean object


Word description
Returns the value of the requested attribute-name in pixel-format. If attribute-name is unsupported by the window system, f is returned.

See also
world-pixel-format-attributes, check-world-pixel-format, pixel-format, <pixel-format>

Definition
USING: math ;

IN: ui.pixel-formats

TUPLE: pixel-format-attribute { value integer initial: 0 } ;


Methods
USING: accessors assocs classes kernel sequences ui.backend.gtk
ui.pixel-formats ;

M: pixel-format-attribute >gl-config-attribs
dup class-of H{
{ stencil-bits { 13 } }
{ accum-red-bits { 14 } }
{ depth-bits { 12 } }
{ color-bits { 2 } }
{ accum-alpha-bits { 17 } }
{ green-bits { 9 } }
{ samples { 100001 } }
{ stereo { 6 } }
{ sample-buffers { 100000 } }
{ accum-green-bits { 15 } }
{ blue-bits { 10 } }
{ alpha-bits { 11 } }
{ aux-buffers { 7 } }
{ double-buffered { 5 } }
{ red-bits { 8 } }
{ accum-blue-bits { 16 } }
} at [ swap value>> suffix ] [ drop { } ] if* ;