video

Contents

Name Description
ECF_A1R5G5B5

1 bit alpha, 5 bits red, blue, and green (16 bit)

ECF_A8R8G8B8

8 bit red, blue, green, and alpha

ECF_R16F

1 channel with 16 bit floating point.

ECF_R5G6B5

5 bit red, 6 bit green, 5 bit blue

newiimage( format , size )

Creates a new irrlicht image.

newiimagefromfile( path )

Creates a new irrlicht image.

newsmaterial( )

Creates a new material.


ECF_A1R5G5B5


ECF_A8R8G8B8


ECF_R16F

1 channel 16 bit floating point. Uses the red channel. Floating point images may only be used for render targets.


ECF_R5G6B5


newiimage( enum_color_format format , vec2d size )

Creates a new irrlicht image.

A newly created image will be fully white by default.

Parameters
Returns

Defined at client/lua_api/video/iimage.cpp:20


newiimagefromfile( string path )

Creates a new irrlicht image.

Creates a new irrlicht image from a file. The format and width/height will be taken from the image file.

Parameters
Returns

Defined at client/lua_api/video/iimage.cpp:46


newsmaterial( )

Creates a new material.

Creates a new material that can then be used on an iscenenode WARNING: this item is not currently garbage collected, be careful not to make more smaterials than you need.

Returns

Defined at client/lua_api/video/smaterial.cpp:19