Draw

backend.Draw (Class)

Instance Members

headless
getItem(visual: ceramic.Visual): Anonymous
Name Type
visual ceramic.Visual
Returns
Anonymous

headless
draw(visuals: Array<ceramic.Visual>): Void
Name Type
visuals Array<ceramic.Visual>

headless
swap(): Void

headless
initBuffers(): Void

headless
beginRender(): Void

headless
setRenderTarget(renderTarget: ceramic.RenderTexture, ?force: Bool = false): Void
Name Type Default
renderTarget ceramic.RenderTexture
force Bool false

headless
useShader(shader: ShaderImpl): Void
Name Type
shader ShaderImpl

headless
clear(): Void

headless
enableBlending(): Void

headless
disableBlending(): Void

headless
setBlendFuncSeparate(srcRgb: BlendMode, dstRgb: BlendMode, srcAlpha: BlendMode, dstAlpha: BlendMode): Void
Name Type
srcRgb BlendMode
dstRgb BlendMode
srcAlpha BlendMode
dstAlpha BlendMode

headless
getActiveTexture(): Int
Returns
Int

headless
setActiveTexture(slot: Int): Void
Name Type
slot Int

headless
textureBackendItemMatchesId(backendItem: Texture, textureId: TextureId): Bool
Name Type
backendItem Texture
textureId TextureId
Returns
Bool

headless
getTextureId(backendItem: Texture): TextureId
Name Type
backendItem Texture
Returns
TextureId

headless
getTextureWidth(texture: Texture): Int
Name Type
texture Texture
Returns
Int

headless
getTextureHeight(texture: Texture): Int
Name Type
texture Texture
Returns
Int

headless
getTextureWidthActual(texture: Texture): Int
Name Type
texture Texture
Returns
Int

headless
getTextureHeightActual(texture: Texture): Int
Name Type
texture Texture
Returns
Int

headless
bindTexture(backendItem: Texture): Void
Name Type
backendItem Texture

headless
bindNoTexture(): Void

headless
setPrimitiveType(primitiveType: ceramic.RenderPrimitiveType): Void
Name Type
primitiveType ceramic.RenderPrimitiveType

headless
beginDrawQuad(quad: ceramic.Quad): Void
Name Type
quad ceramic.Quad

headless
endDrawQuad(): Void

headless
beginDrawMesh(mesh: ceramic.Mesh): Void
Name Type
mesh ceramic.Mesh

headless
endDrawMesh(): Void

headless
enableScissor(x: Float, y: Float, width: Float, height: Float): Void
Name Type
x Float
y Float
width Float
height Float

headless
disableScissor(): Void

headless
beginDrawingInStencilBuffer(): Void

headless
endDrawingInStencilBuffer(): Void

headless
drawWithStencilTest(): Void

headless
drawWithoutStencilTest(): Void

headless
getNumPos(): Int
Returns
Int

headless
putPos(x: Float, y: Float, z: Float): Void
Name Type
x Float
y Float
z Float

headless
putPosAndTextureSlot(x: Float, y: Float, z: Float, textureSlot: Float): Void
Name Type
x Float
y Float
z Float
textureSlot Float

headless
putIndice(i: Int): Void
Name Type
i Int

headless
putUVs(uvX: Float, uvY: Float): Void
Name Type
uvX Float
uvY Float

headless
putColor(r: Float, g: Float, b: Float, a: Float): Void
Name Type
r Float
g Float
b Float
a Float

headless
beginFloatAttributes(): Void

headless
putFloatAttribute(index: Int, value: Float): Void
Name Type
index Int
value Float

headless
endFloatAttributes(): Void

headless
clearAndApplyBackground(): Void

headless
shouldFlush(numVerticesAfter: Int, numIndicesAfter: Int, customFloatAttributesSize: Int): Bool
Name Type
numVerticesAfter Int
numIndicesAfter Int
customFloatAttributesSize Int
Returns
Bool

headless
remainingVertices(): Int
Returns
Int

headless
remainingIndices(): Int
Returns
Int

headless
hasAnythingToFlush(): Bool
Returns
Bool

headless
flush(): Void

headless
new(): Void

Private Members

headless
MAX_VERTS_SIZE: Int

headless
MAX_INDICES: Int

headless
resetIndexes(): Void

Metadata

Name Parameters
:allow backend.Backend