enum Gloop::PixelFormat

Overview

Describes the structure (components) of a pixel.

Defined in:

gloop/pixel_format.cr

Enum 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

Instance Method Summary

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.


[View source]

Instance Method Detail

def alpha? #

[View source]
def bgr? #

[View source]
def bgra? #

[View source]
def blue? #

[View source]
def depth? #

[View source]
def depth_stencil? #

[View source]
def green? #

[View source]
def int_bgr? #

[View source]
def int_bgra? #

[View source]
def int_blue? #

[View source]
def int_green? #

[View source]
def int_red? #

[View source]
def int_rg? #

[View source]
def int_rgb? #

[View source]
def int_rgba? #

[View source]
def red? #

[View source]
def rg? #

[View source]
def rgb? #

[View source]
def rgba? #

[View source]
def stencil? #

[View source]
def to_unsafe #

Converts to an OpenGL enum.


[View source]
def u_int16? #

[View source]
def u_int32? #

[View source]