Top |
GrxFrameMode
grx_frame_mode_get_current (void
);
Get the frame mode of the current context.
GrxFrameMode
grx_frame_mode_get_screen (void
);
Get the frame mode of the screen.
GrxFrameMode
grx_frame_mode_get_screen_core (void
);
Get the compatible RAM frame mode of the screen.
gint
grx_frame_mode_get_bpp (GrxFrameMode mode
);
Gets the color depth of the frame mode in bits per pixel.
gint
grx_frame_mode_get_n_planes (GrxFrameMode mode
);
Gets the number of planes for a frame mode.
gint grx_frame_mode_get_line_offset (GrxFrameMode mode
,gint width
);
Gets the offset in bytes for a row of width
pixels.
gint grx_frame_mode_get_plane_size (GrxFrameMode mode
,gint width
,gint height
);
Gets the plane size in bytes required to store an image of width
x height
for this frame mode.
gint grx_frame_mode_get_context_size (GrxFrameMode mode
,gint width
,gint height
);
Gets the total size in bytes required to store an image of width
x height
for this frame mode.
gint
grx_screen_get_n_planes (void
);
Gets the number of planes for the screen's RAM frame mode.
gint
grx_screen_get_line_offset (gint width
);
Gets the offset in bytes for a row of width
pixels on the screen.
gint grx_screen_get_plane_size (gint width
,gint height
);
Gets the plane size in bytes required to store an image of width
x height
for the screen.
Available frame modes (video memory layouts)
Undefined |
||
Text mode |
||
Linear frame buffer, 1bpp, 0 = white, 1 = black |
||
Linear frame buffer, 1bpp, 0 = black, 1 = white |
||
Linear frame buffer, 2bpp, 4 color |
||
Linear frame buffer, 8bpp, 256 color |
||
Linear frame buffer, 16bpp, 32768/65536 color |
||
Linear frame buffer, 24bpp, 16M color |
||
Linear frame buffer, 32bpp, 16M color using lower 24 bits |
||
Linear frame buffer, 32bpp, 16M color using upper 24 bits |
||
RAM frame buffer, 1bpp, monochome |
||
RAM frame buffer, 2bpp, 4 color |
||
RAM frame buffer, 4bpp, 16 color planar |
||
RAM frame buffer, 8bpp, 256 color |
||
RAM frame buffer, 16bpp, 32768/65536 color |
||
RAM frame buffer, 24bpp, 16M color |
||
RAM frame buffer, 32bpp, 16M color using lower 24 bits |
||
RAM frame buffer, 32bpp, 16M color using upper 24 bits |
||
RAM frame buffer, 3x8bpp, 16M color in 3 planes |
||
The first text mode |
||
The last text mode |
||
The first graphics mode |
||
The last graphics mode |
||
The first RAM mode |
||
The last RAM mode |