Constructor

@:value({ animate : true, hasImage : true })new(width_:Int, height_:Int, hasImage:Bool = true, animate:Bool = true)

Variables

animate:Bool

@:value(0.9)bgA:Float = 0.9

@:value(0.5)bgB:Float = 0.5

@:value(0.0)bgG:Float = 0.0

@:value(0.5)bgR:Float = 0.5

bufColor:Buffer

bufIndices:Buffer

bufTexture:Buffer

gl:RenderingContext

@:value(true)hasImage:Bool = true

height:Int

img:Image

@:value(ModeNone)mode:ProgramMode = ModeNone

programColor:Program

tex:Texture

@:value(new Array<Texture>())textureArr:Array<Texture> = new Array<Texture>()

@:value([1., 0., 0., 0., 1., 0., 0., 0., 1.])transformUVArr:Array<Float> = [1., 0., 0., 0., 1., 0., 0., 0., 1.]

width:Int

Methods

changeImage(img_:Image):Void

draw():Void

drawColorShape(start:Int, end:Int):Void

drawData(program:Program, dataGL:DataGL, start:Int, end:Int, len:Int):Void

drawTextureShape(start:Int, end:Int, bgColor:Int):Void

inlinenotAlpha():Void

renderDraw():Void

renderOnce():Void

setBackgroundShapeColor(red:Float, green:Float, blue:Float, alpha:Float):Void

inlinewithAlpha():Void