note
	description: "The way the pixels are store in memory."
	author: "Louis Marchand"
	date: "Thu, 02 Apr 2015 02:40:10 +0000"
	revision: "2.0"

class interface
	GAME_PIXEL_FORMAT

create 
	default_create,
	make_from_other,
	make_from_bits_per_pixel_and_masks


create {GAME_SDL_ANY}
	make_from_flags,
	make_from_structure_pointer,
	share_from_structure_pointer,
	own_from_structure_pointer

feature -- Access

	set_unknown
			-- Set the pixel format of Current to unknown
		ensure
			pixel_format_changed: is_unknown

	set_index1lsb
			-- Set the pixel format of Current to index1lsb
		ensure
			pixel_format_changed: is_index1lsb

	set_index1msb
			-- Set the pixel format of Current to index1msb
		ensure
			pixel_format_changed: is_index1msb

	set_index4lsb
			-- Set the pixel format of Current to index4lsb
		ensure
			pixel_format_changed: is_index4lsb

	set_index4msb
			-- Set the pixel format of Current to index4msb
		ensure
			pixel_format_changed: is_index4msb

	set_index8
			-- Set the pixel format of Current to index8
		ensure
			pixel_format_changed: is_index8

	set_rgb332
			-- Set the pixel format of Current to rgb332
		ensure
			pixel_format_changed: is_rgb332

	set_rgb444
			-- Set the pixel format of Current to rgb444
		ensure
			pixel_format_changed: is_rgb444

	set_rgb555
			-- Set the pixel format of Current to rgb555
		ensure
			pixel_format_changed: is_rgb555

	set_bgr555
			-- Set the pixel format of Current to bgr555
		ensure
			pixel_format_changed: is_bgr555

	set_argb4444
			-- Set the pixel format of Current to argb4444
		ensure
			pixel_format_changed: is_argb4444

	set_rgba4444
			-- Set the pixel format of Current to rgba4444
		ensure
			pixel_format_changed: is_rgba4444

	set_abgr4444
			-- Set the pixel format of Current to abgr4444
		ensure
			pixel_format_changed: is_abgr4444

	set_bgra4444
			-- Set the pixel format of Current to bgra4444
		ensure
			pixel_format_changed: is_bgra4444

	set_argb1555
			-- Set the pixel format of Current to argb1555
		ensure
			pixel_format_changed: is_argb1555

	set_rgba5551
			-- Set the pixel format of Current to rgba5551
		ensure
			pixel_format_changed: is_rgba5551

	set_abgr1555
			-- Set the pixel format of Current to abgr1555
		ensure
			pixel_format_changed: is_abgr1555

	set_bgra5551
			-- Set the pixel format of Current to bgra5551
		ensure
			pixel_format_changed: is_bgra5551

	set_rgb565
			-- Set the pixel format of Current to rgb565
		ensure
			pixel_format_changed: is_rgb565

	set_bgr565
			-- Set the pixel format of Current to bgr565
		ensure
			pixel_format_changed: is_bgr565

	set_rgb24
			-- Set the pixel format of Current to rgb24
		ensure
			pixel_format_changed: is_rgb24

	set_bgr24
			-- Set the pixel format of Current to bgr24
		ensure
			pixel_format_changed: is_bgr24

	set_rgb888
			-- Set the pixel format of Current to rgb888
		ensure
			pixel_format_changed: is_rgb888

	set_rgbx8888
			-- Set the pixel format of Current to rgbx8888
		ensure
			pixel_format_changed: is_rgbx8888

	set_bgr888
			-- Set the pixel format of Current to bgr888
		ensure
			pixel_format_changed: is_bgr888

	set_bgrx8888
			-- Set the pixel format of Current to bgrx8888
		ensure
			pixel_format_changed: is_bgrx8888

	set_argb8888
			-- Set the pixel format of Current to argb8888
		ensure
			pixel_format_changed: is_argb8888

	set_rgba8888
			-- Set the pixel format of Current to rgba8888
		ensure
			pixel_format_changed: is_rgba8888

	set_abgr8888
			-- Set the pixel format of Current to abgr8888
		ensure
			pixel_format_changed: is_abgr8888

	set_bgra8888
			-- Set the pixel format of Current to bgra8888
		ensure
			pixel_format_changed: is_bgra8888

	set_argb2101010
			-- Set the pixel format of Current to argb2101010
		ensure
			pixel_format_changed: is_argb2101010

	set_yv12
			-- Set the pixel format of Current to yv12
		ensure
			pixel_format_changed: is_yv12

	set_iyuv
			-- Set the pixel format of Current to iyuv
		ensure
			pixel_format_changed: is_iyuv

	set_yuy2
			-- Set the pixel format of Current to yuy2
		ensure
			pixel_format_changed: is_yuy2

	set_uyvy
			-- Set the pixel format of Current to uyvy
		ensure
			pixel_format_changed: is_uyvy

	set_yvyu
			-- Set the pixel format of Current to yvyu
		ensure
			pixel_format_changed: is_yvyu

	color_palette: detachable GAME_COLOR_PALETTE assign set_color_palette
			-- The palette of color used in the indexed pixel format
	
end -- class GAME_PIXEL_FORMAT

Generated by ISE EiffelStudio