allg5/pixelformat.go

42 lines
2.6 KiB
Go
Raw Normal View History

2019-12-28 00:41:32 +00:00
package allg5
// #include <allegro5/allegro.h>
import "C"
// PixelFormat describes the components a pixel.
type PixelFormat int
const (
PixelFormatAny PixelFormat = C.ALLEGRO_PIXEL_FORMAT_ANY
PixelFormatAnyNoAlpha = C.ALLEGRO_PIXEL_FORMAT_ANY_NO_ALPHA
PixelFormatAnyAlpha = C.ALLEGRO_PIXEL_FORMAT_ANY_WITH_ALPHA
PixelFormatAny15NoAlpha = C.ALLEGRO_PIXEL_FORMAT_ANY_15_NO_ALPHA
PixelFormatAny16NoAlpha = C.ALLEGRO_PIXEL_FORMAT_ANY_16_NO_ALPHA
PixelFormatAny16Alpha = C.ALLEGRO_PIXEL_FORMAT_ANY_16_WITH_ALPHA
PixelFormatAny24NoAlpha = C.ALLEGRO_PIXEL_FORMAT_ANY_24_NO_ALPHA
PixelFormatAny32NoAlpha = C.ALLEGRO_PIXEL_FORMAT_ANY_32_NO_ALPHA
PixelFormatAny32Alpha = C.ALLEGRO_PIXEL_FORMAT_ANY_32_WITH_ALPHA
PixelFormatARGB8888 = C.ALLEGRO_PIXEL_FORMAT_ARGB_8888
PixelFormatRGBA8888 = C.ALLEGRO_PIXEL_FORMAT_RGBA_8888
PixelFormatARGB4444 = C.ALLEGRO_PIXEL_FORMAT_ARGB_4444
PixelFormatRGB888 = C.ALLEGRO_PIXEL_FORMAT_RGB_888
PixelFormatRGB565 = C.ALLEGRO_PIXEL_FORMAT_RGB_565
PixelFormatRGB555 = C.ALLEGRO_PIXEL_FORMAT_RGB_555
PixelFormatRGBA5551 = C.ALLEGRO_PIXEL_FORMAT_RGBA_5551
PixelFormatARGB1555 = C.ALLEGRO_PIXEL_FORMAT_ARGB_1555
PixelFormatABGR8888 = C.ALLEGRO_PIXEL_FORMAT_ABGR_8888
PixelFormatXBGR8888 = C.ALLEGRO_PIXEL_FORMAT_XBGR_8888
PixelFormatBGR888 = C.ALLEGRO_PIXEL_FORMAT_BGR_888
PixelFormatBGR565 = C.ALLEGRO_PIXEL_FORMAT_BGR_565
PixelFormatBGR555 = C.ALLEGRO_PIXEL_FORMAT_BGR_555
PixelFormatRGBX8888 = C.ALLEGRO_PIXEL_FORMAT_RGBX_8888
PixelFormatXRGB8888 = C.ALLEGRO_PIXEL_FORMAT_XRGB_8888
PixelFormatABGRF32 = C.ALLEGRO_PIXEL_FORMAT_ABGR_F32
PixelFormatABGR8888LE = C.ALLEGRO_PIXEL_FORMAT_ABGR_8888_LE
PixelFormatRGBA4444 = C.ALLEGRO_PIXEL_FORMAT_RGBA_4444
PixelFormatSingleChannel8 = C.ALLEGRO_PIXEL_FORMAT_SINGLE_CHANNEL_8
PixelFormatCompressedRGBADXT1 = C.ALLEGRO_PIXEL_FORMAT_COMPRESSED_RGBA_DXT1
PixelFormatCompressedRGBADXT3 = C.ALLEGRO_PIXEL_FORMAT_COMPRESSED_RGBA_DXT3
PixelFormatCompressedRGBADXT5 = C.ALLEGRO_PIXEL_FORMAT_COMPRESSED_RGBA_DXT5
)