Render-Interface for LUIBufferedElement.

  • A LUIContainerLayouter must answer the following quest:

How to render the buffered result (texture) of a LUIBufferedElement?

  • Example: simply copy draw the buffered content
class MyRenderer implements BufferRenderer{

drawBuffer(
context: LUIBufferedElement,
gfx: FatRenderer,
buffer: RenderTarget,
bufferTex: ManagedTexture,
pixelSize: number
) {

gfx.directDraw(
bufferTexture,
0,
0,
buffer.width,
buffer.height,
0, 0,
buffer.width / pixelSize,
buffer.height / pixelSize,
Color.White,
BlendMode.BM_NO_BLEND
);
}

See

LUIBufferedElement

Hierarchy

  • BufferRenderer

Methods

Methods

Generated using TypeDoc