AGPrint

open class AGPrint(size: Size = Size(640, 480)) : AGBaseLog

Constructors

Link copied to clipboard
constructor(size: Size = Size(640, 480))

Properties

Link copied to clipboard
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
open override val graphicExtensions: Set<String>
Link copied to clipboard
open override val isFloatTextureSupported: Boolean
Link copied to clipboard
open override val isInstancedSupported: Boolean
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 = 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
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
Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open fun draw(frameBuffer: AGFrameBufferBase, frameBufferInfo: AGFrameBufferInfo, 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
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 override fun finish()
Link copied to clipboard
fun getShaderSource(shader: Shader, shaderType: ShaderType, glVariant: GLVariant = GLVariant.DESKTOP): AGBaseLog.ShaderInfo
Link copied to clipboard
fun getStats(out: AGStats = stats): AGStats
Link copied to clipboard
open override fun log(str: String, kind: AGBaseLog.Kind)
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()