AGMetal

class AGMetal(view: MTKView, shouldFlattenVertexData: Boolean = true) : AG

Constructors

Link copied to clipboard
constructor(view: MTKView, shouldFlattenVertexData: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun afterDoRender()
Link copied to clipboard
open fun beforeDoRender()
Link copied to clipboard
open fun clear(frameBuffer: AGFrameBufferBase, frameBufferInfo: AGFrameBufferInfo, color: RGBA, depth: Float, stencil: Int, clearColor: Boolean, clearDepth: Boolean, clearStencil: Boolean, scissor: AGScissor)
Link copied to clipboard
fun AG.clear(frameBuffer: AGFrameBuffer, color: RGBA = Colors.TRANSPARENT, depth: Float = 1.0f, stencil: Int = 0, clearColor: Boolean = true, clearDepth: Boolean = true, clearStencil: Boolean = true, scissor: AGScissor = AGScissor.NIL)
Link copied to clipboard
open fun contextLost()
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open override fun draw(frameBuffer: AGFrameBufferBase, frameBufferInfo: AGFrameBufferInfo, vertexData: AGVertexArrayObject, program: Program, drawType: AGDrawType, vertexCount: Int, indices: AGBuffer?, indexType: AGIndexType, drawOffset: Int, blending: AGBlending, uniformBlocks: UniformBlocksBuffersRef, textureUnits: AGTextureUnits, stencilRef: AGStencilReference, stencilOpFunc: AGStencilOpFunc, colorMask: AGColorMask, depthAndFrontFace: AGDepthAndFrontFace, scissor: AGScissor, cullFace: AGCullFace, instances: Int)
Link copied to clipboard
fun AG.draw(batch: AGBatch)
fun AG.draw(batch: AGMultiBatch)
fun AG.draw(frameBuffer: AGFrameBuffer, vertexData: AGVertexArrayObject, program: Program, drawType: AGDrawType, vertexCount: Int, indices: AGBuffer? = null, indexType: AGIndexType = AGIndexType.USHORT, drawOffset: Int = 0, blending: AGBlending = AGBlending.NORMAL, uniformBlocks: UniformBlocksBuffersRef = UniformBlocksBuffersRef.EMPTY, textureUnits: AGTextureUnits = AGTextureUnits.EMPTY, stencilRef: AGStencilReference = AGStencilReference.DEFAULT, stencilOpFunc: AGStencilOpFunc = AGStencilOpFunc.DEFAULT, colorMask: AGColorMask = AGColorMask.ALL_ENABLED, depthAndFrontFace: AGDepthAndFrontFace = AGDepthAndFrontFace.DEFAULT, scissor: AGScissor = AGScissor.NIL, cullFace: AGCullFace = AGCullFace.NONE, instances: Int = 1)
Link copied to clipboard
open fun endFrame()
Link copied to clipboard
fun AG.execute(command: AGCommand)
Link copied to clipboard
suspend fun AG.executeUntilFinish(flow: ReceiveChannel<AGCommand>)
Link copied to clipboard
open fun finish()
Link copied to clipboard
Link copied to clipboard
fun AG.readColor(frameBuffer: AGFrameBuffer): Bitmap32
fun AG.readColor(frameBuffer: AGFrameBuffer, bitmap: Bitmap32, x: Int = 0, y: Int = 0)
Link copied to clipboard
fun AG.readDepth(frameBuffer: AGFrameBuffer, out: FloatArray2)
fun AG.readDepth(frameBuffer: AGFrameBuffer, width: Int, height: Int, out: FloatArray)
Link copied to clipboard
fun AG.readPixel(frameBuffer: AGFrameBuffer, x: Int, y: Int): RGBA
Link copied to clipboard
fun AG.readStencil(frameBuffer: AGFrameBuffer, bitmap: Bitmap8)
Link copied to clipboard
open fun readToMemory(frameBuffer: AGFrameBufferBase, frameBufferInfo: AGFrameBufferInfo, x: Int, y: Int, width: Int, height: Int, data: Any, kind: AGReadKind)
Link copied to clipboard
open fun readToTexture(frameBuffer: AGFrameBufferBase, frameBufferInfo: AGFrameBufferInfo, texture: AGTexture, x: Int, y: Int, width: Int, height: Int)
Link copied to clipboard
fun AG.readToTexture(frameBuffer: AGFrameBuffer, texture: AGTexture, bounds: RectangleInt)
fun AG.readToTexture(frameBuffer: AGFrameBuffer, texture: AGTexture, x: Int = 0, y: Int = 0, width: Int = frameBuffer.width, height: Int = frameBuffer.height)
Link copied to clipboard
inline fun <T> setMainFrameBufferTemporarily(frameBuffer: AGFrameBuffer, block: () -> T): T
Link copied to clipboard
inline fun <T> startEndFrame(block: () -> T): T
Link copied to clipboard
open fun startFrame()