| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
GLUE
GLUE.BaseTexture

# Method GLUE.BaseTexture()->construct()

Method construct

  `void construct(int width, int height, int _alpha, mapping|void imgs, int(0..3)|void flags, int|void _mode, string|void debug_text)`

Description

  Construct a new texture. Processes _alpha , _mode and debug_text and calls resize .

Parameter `_alpha`

  The alpha mode the texture is operating in.

  `0` | RGB
  `1` | RGBA
  `2` | ALPHA
  `3` | LUM
  `4` | LUM+ALPHA

Parameter `_mode`

  The mode the texture is operating in. Autoselected wrt _alpha if `0`.

Parameter `debug_text`

  A string that can be used to identify this texture.