Pike v8.1 release 6

Method GLUE.BaseTexture()->construct()


Method construct

void construct(int width, int height, int _alpha, mapping|void imgs, int(2bit)|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.