Enumeration

HsPixelFormat

Declaration

enum Hs.PixelFormat

Description [src]

Represents the pixel formats to use for HsSoftwareContext framebuffer.

Members

HS_PIXEL_FORMAT_R8G8B8

A pixel is 24 bits long, with 8 bit for red, green and blue channels.

  • Value: 0
  • Available since: 1
HS_PIXEL_FORMAT_R8G8B8X8

A pixel is 32 bits long, with 8 unused bits, then 8 bits for red, green and blue channels each.

  • Value: 1
  • Available since: 1
HS_PIXEL_FORMAT_B8G8R8X8

A pixel is 32 bits long, with 8 bits for blue, green and red channels each, followed by 8 unused bits.

  • Value: 2
  • Available since: 1

Type functions

hs_pixel_format_get_pixel_size

Gets the size of a pixel in a given format, in bytes.