Method GLUE.BaseTexture()->create_texture()
- Method
create_texture
voidcreate_texture(mapping|voidimgs,int(2bit)|voidflags,int|voidwidth,int|voidheight)- Description
Actually creates the texture.
- Parameter
imgs If zero, a black texture with the dimensions
width*heightwill be generated. Otherwiseimgsshould be a mapping as follows."image":Image.ImageThe actual image to be used as texture. It will be cropped/padded to meet the dimensions given in
widthandheight."alpha":Image.ImageOptional image to be used as alpha channel, depending on the alpha value given to create/construct.
- Parameter
flags If
1, the texture will be mipmapped. If bit 1 (2) is set, texture will not be wrapped but clamped.- Parameter
width - Parameter
height The dimensions of the texture. If omitted the dimensions of the images in
imgswill be used.- See also