enum Gloop::PixelFormat
Overview
Describes the structure (components) of a pixel.
Defined in:
gloop/pixel_format.crEnum Members
-
UInt16 =
5123_u32 -
UInt32 =
5125_u32 -
Stencil =
6401_u32 -
Depth =
6402_u32 -
Red =
6403_u32 -
Green =
6404_u32 -
Blue =
6405_u32 -
Alpha =
6406_u32 -
RG =
33319_u32 -
RGB =
6407_u32 -
RGBA =
6408_u32 -
BGR =
32992_u32 -
BGRA =
32993_u32 -
IntRed =
36244_u32 -
IntGreen =
36245_u32 -
IntBlue =
36246_u32 -
IntRGB =
36248_u32 -
IntRGBA =
36249_u32 -
IntBGR =
36250_u32 -
IntBGRA =
36251_u32 -
IntRG =
33320_u32 -
DepthStencil =
34041_u32
Constructors
-
.new(value : Symbol)
Creates a pixel format from a symbol.
Instance Method Summary
- #alpha?
- #bgr?
- #bgra?
- #blue?
- #depth?
- #depth_stencil?
- #green?
- #int_bgr?
- #int_bgra?
- #int_blue?
- #int_green?
- #int_red?
- #int_rg?
- #int_rgb?
- #int_rgba?
- #red?
- #rg?
- #rgb?
- #rgba?
- #stencil?
-
#to_unsafe
Converts to an OpenGL enum.
- #u_int16?
- #u_int32?
Constructor Detail
def self.new(value : Symbol)
#
Creates a pixel format from a symbol.
This is intended to be used as a workaround for Crystal's limitations and auto-generated names.