AGOpengl

class AGOpengl(val gl: KmlGl, var context: KmlGlContext? = null) : AG

Constructors

Link copied to clipboard
constructor(gl: KmlGl, context: KmlGlContext? = null)

Types

Link copied to clipboard
class ShaderException(val str: String, val error: String, val errorInt: Int, val gl: KmlGl, val debugName: String?, val type: Int, val shaderReturnInt: Int) : RuntimeException
Link copied to clipboard
class TextureUnitParams(val index: Int)

Properties

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
open override var extra: ExtraType
Link copied to clipboard
val gl: KmlGl
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
open override val parentFeatures: AGFeatures
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun _vaoUse(vao: AGVertexArrayObject, updateBuffersOnly: Boolean = false)
Link copied to clipboard
open fun afterDoRender()
Link copied to clipboard
open fun beforeDoRender()
Link copied to clipboard
Link copied to clipboard
open override 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 override fun contextLost()
Link copied to clipboard
Link copied to clipboard
fun cullFace(face: AGCullFace)
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 override 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 getStats(out: AGStats = stats): AGStats
Link copied to clipboard
fun listStart()
Link copied to clipboard
fun AGTexture?.magFilter(linear: Boolean, trilinear: Boolean = linear): Int
Link copied to clipboard
fun AGTexture?.minFilter(linear: Boolean, trilinear: Boolean = linear): Int
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 readPixelsToTexture(tex: AGTexture, x: Int, y: Int, width: Int, height: Int, kind: AGReadKind)
Link copied to clipboard
fun AG.readStencil(frameBuffer: AGFrameBuffer, bitmap: Bitmap8)
Link copied to clipboard
open override fun readToMemory(frameBuffer: AGFrameBufferBase, frameBufferInfo: AGFrameBufferInfo, x: Int, y: Int, width: Int, height: Int, data: Any, kind: AGReadKind)
Link copied to clipboard
open override 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
fun region(scissor: AGScissor, frameBuffer: AGFrameBufferBase, frameBufferInfo: AGFrameBufferInfo): AGScissor
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> setMainFrameBufferTemporarily(frameBuffer: AGFrameBuffer, block: () -> T): T
Link copied to clipboard
fun setScissorState(scissor: AGScissor, frameBuffer: AGFrameBufferBase, frameBufferInfo: AGFrameBufferInfo)
Link copied to clipboard
open fun setSwapInterval(value: Int)
Link copied to clipboard
inline fun <T> startEndFrame(block: () -> T): T
Link copied to clipboard
open override fun startFrame()
Link copied to clipboard
fun sync()
Link copied to clipboard
Link copied to clipboard
fun textureSetFromFrameBuffer(tex: AGTexture, x: Int, y: Int, width: Int, height: Int)
Link copied to clipboard
fun uniformsSet(uniformBlocks: UniformBlocksBuffersRef, textureUnits: AGTextureUnits, program: Program, frameBuffer: AGFrameBufferBase)
Link copied to clipboard
fun <T : AGObject> T.update(block: (T) -> Unit)
Link copied to clipboard
Link copied to clipboard