IN: images
SINGLETONS:
- L LA BGR RGB BGRA RGBA ABGR ARGB RGBX XRGB BGRX XBGR
+ A L LA BGR RGB BGRA RGBA ABGR ARGB RGBX XRGB BGRX XBGR
+ INTENSITY DEPTH R RG
ubyte-components ushort-components
half-components float-components
byte-integer-components ubyte-integer-components
int-integer-components uint-integer-components ;
UNION: component-order
- L LA BGR RGB BGRA RGBA ABGR ARGB RGBX XRGB BGRX XBGR ;
+ A L LA BGR RGB BGRA RGBA ABGR ARGB RGBX XRGB BGRX XBGR
+ INTENSITY DEPTH R RG ;
UNION: component-type
ubyte-components ushort-components
short-integer-components ushort-integer-components
int-integer-components uint-integer-components ;
-UNION: alpha-channel BGRA RGBA ABGR ARGB ;
+UNION: alpha-channel BGRA RGBA ABGR ARGB LA A INTENSITY ;
TUPLE: image dim component-order component-type upside-down? bitmap ;
: component-count ( component-order -- n )
{
+ { A [ 1 ] }
{ L [ 1 ] }
{ LA [ 2 ] }
{ BGR [ 3 ] }
{ XRGB [ 4 ] }
{ BGRX [ 4 ] }
{ XBGR [ 4 ] }
+ { INTENSITY [ 1 ] }
+ { DEPTH [ 1 ] }
+ { R [ 1 ] }
+ { RG [ 2 ] }
} case ;
: pixel@ ( x y image -- start end bitmap )
CONSTANT: GL_MAX_PROGRAM_TEXEL_OFFSET_EXT HEX: 8905
+! GL_ARB_texture_rectangle
+
+
+CONSTANT: GL_TEXTURE_RECTANGLE_ARB HEX: 84F5
+CONSTANT: GL_TEXTURE_BINDING_RECTANGLE_ARB HEX: 84F6
+CONSTANT: GL_PROXY_TEXTURE_RECTANGLE_ARB HEX: 84F7
+CONSTANT: GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB HEX: 84F8
+CONSTANT: GL_SAMPLER_2D_RECT_ARB HEX: 8B63
+CONSTANT: GL_SAMPLER_2D_RECT_SHADOW_ARB HEX: 8B64
+
+
! GL_EXT_geometry_shader4