Draw

backend.Draw (Class)

Static Members

Name Type
renderer unityengine.rendering.universal.ScriptableRenderer
renderingData unityengine.rendering.universal.RenderingData

Instance Members

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

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

unity
swap(): Void

unity
getNumPos(): Int
Returns
Int

Name Type
x ceramic.Float32
y ceramic.Float32
z ceramic.Float32

unity
putPosAndTextureSlot(x: ceramic.Float32, y: ceramic.Float32, z: ceramic.Float32, textureSlot: ceramic.Float32): Void
Name Type
x ceramic.Float32
y ceramic.Float32
z ceramic.Float32
textureSlot ceramic.Float32

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

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

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

unity
putTransformedQuad(w: Float, h: Float, matA: Float, matB: Float, matC: Float, matD: Float, matTX: Float, matTY: Float, z: Float, textureSlot: Float, r: Float, g: Float, b: Float, a: Float, u0: Float, v0: Float, u1: Float, v1: Float, u2: Float, v2: Float, u3: Float, v3: Float, flipOrder: Bool, wireframe: Bool, attrs: Array<Float>, attrsLen: Int, attrCount: Int): Void
Name Type
w Float
h Float
matA Float
matB Float
matC Float
matD Float
matTX Float
matTY Float
z Float
textureSlot Float
r Float
g Float
b Float
a Float
u0 Float
v0 Float
u1 Float
v1 Float
u2 Float
v2 Float
u3 Float
v3 Float
flipOrder Bool
wireframe Bool
attrs Array<Float>
attrsLen Int
attrCount Int

unity
putTransformedMeshPart(vertices32: ceramic.Float32Array, vertices: Array<Float>, indices: Array<Int>, start: Int, end: Int, hasUvs: Bool, uvs: Array<Float>, uvFactorX: Float, uvFactorY: Float, singleColor: Bool, indicesColor: Bool, floatColors: ceramic.Float32Array, colors: Array<ceramic.AlphaColor>, r: Float, g: Float, b: Float, a: Float, globalAlpha: Float, premultiply: Bool, zeroAlpha: Bool, meshAttrCount: Int, shaderAttrCount: Int, matA: Float, matB: Float, matC: Float, matD: Float, matTX: Float, matTY: Float, z: Float, textureSlot: Float): Void
Name Type
vertices32 ceramic.Float32Array
vertices Array<Float>
indices Array<Int>
start Int
end Int
hasUvs Bool
uvs Array<Float>
uvFactorX Float
uvFactorY Float
singleColor Bool
indicesColor Bool
floatColors ceramic.Float32Array
colors Array<ceramic.AlphaColor>
r Float
g Float
b Float
a Float
globalAlpha Float
premultiply Bool
zeroAlpha Bool
meshAttrCount Int
shaderAttrCount Int
matA Float
matB Float
matC Float
matD Float
matTX Float
matTY Float
z Float
textureSlot Float

unity
beginFloatAttributes(): Void

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

unity
endFloatAttributes(): Void

unity
initBuffers(): Void

unity
beginRender(): Void

unity
endRender(): Void

unity
clearAndApplyBackground(): Void

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

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

unity
clear(): Void

unity
enableBlending(): Void

unity
disableBlending(): Void

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

unity
getActiveTexture(): Int
Returns
Int

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

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

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

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

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

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

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

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

unity
bindNoTexture(): Void

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

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

unity
endDrawQuad(): Void

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

unity
endDrawMesh(): Void

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

unity
disableScissor(): Void

unity
beginDrawingInStencilBuffer(): Void

unity
endDrawingInStencilBuffer(): Void

unity
drawWithStencilTest(): Void

unity
drawWithoutStencilTest(): Void

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

unity
remainingVertices(): Int
Returns
Int

unity
remainingIndices(): Int
Returns
Int

unity
hasAnythingToFlush(): Bool
Returns
Bool

unity
flush(): Void

unity
new(): Void

Private Members

unity
MAX_VERTS_SIZE: Int

unity
MAX_INDICES: Int

unity
QUAD_STAGING_SIZE: Int



unity
mainCameraRenderPasses: Array<CeramicRenderPass>

unity
customTargetRenderPasses: Array<CeramicRenderPass>


unity
pendingRenderTargets: Array<ceramic.RenderTexture>

unity
pendingSampledRenderTargets: Array<Array<Texture>>

unity
widthOnDraw: Int

unity
heightOnDraw: Int

unity
renderer: ceramic.Renderer


unity
flushStagedQuads(): Void

unity
prepareNextMesh(): Void

unity
resetIndexes(): Void

unity
updateProjectionMatrix(width: Float, height: Float): Void
Name Type
width Float
height Float

unity
updateViewMatrix(density: Float, width: Float, height: Float, ?transform: ceramic.Transform, ?flipX: Float = 1, ?flipY: Float = 1): Void
Name Type Default
density Float
width Float
height Float
transform ceramic.Transform (optional)
flipX Float 1
flipY Float 1

unity
updateCurrentMatrix(): Void

unity
transformToMatrix4x4(transform: ceramic.Transform): Dynamic
Name Type
transform ceramic.Transform
Returns
Dynamic

unity
trackSampledRenderTexture(backendItem: Texture): Void
Name Type
backendItem Texture

unity
clearPendingCommandBuffers(): Void

unity
configureNextCommandBuffer(renderTarget: ceramic.RenderTexture): Void
Name Type
renderTarget ceramic.RenderTexture

Name Type
renderer unityengine.rendering.universal.ScriptableRenderer
renderingData unityengine.rendering.universal.RenderingData

Metadata

Name Parameters
:hxGen -
:allow backend.Backend