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

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

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

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
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
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
mainCameraRenderPasses: Array<CeramicRenderPass>

unity
customTargetRenderPasses: Array<CeramicRenderPass>


unity
pendingRenderTargets: Array<ceramic.RenderTexture>

unity
widthOnDraw: Int

unity
heightOnDraw: Int

unity
renderer: ceramic.Renderer


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
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