Context3D

package flash.display3D

extends EventDispatcher

Available on flash

Static variables

staticread onlysupportsVideoTexture:Bool

Variables

read onlybackBufferHeight:Int

read onlybackBufferWidth:Int

read onlydriverInfo:String

enableErrorChecking:Bool

maxBackBufferHeight:Int

maxBackBufferWidth:Int

profile:String

read onlytotalGPUMemory:Float

createRectangleTexture:(width:Int, height:Int, format:Context3DTextureFormat, optimizeForRenderToTexture:Bool) ‑> RectangleTexture

setSamplerStateAt:(sampler:Int, wrap:Context3DWrapMode, filter:Context3DTextureFilter, mipfilter:Context3DMipFilter) ‑> Void

Methods

clear(red:Float = 0, green:Float = 0, blue:Float = 0, alpha:Float = 1, depth:Float = 1, stencil:UInt = 0, mask:UInt = 0xFFFFFFFF):Void

configureBackBuffer(width:Int, height:Int, antiAlias:Int, enableDepthAndStencil:Bool = true, wantsBestResolution:Bool = false, wantsBestResolutionOnBrowserZoom:Bool = false):Void

createCubeTexture(size:Int, format:Context3DTextureFormat, optimizeForRenderToTexture:Bool, streamingLevels:Int = 0):CubeTexture

createIndexBuffer(numIndices:Int, ?bufferUsage:Context3DBufferUsage):IndexBuffer3D

createProgram():Program3D

createTexture(width:Int, height:Int, format:Context3DTextureFormat, optimizeForRenderToTexture:Bool, streamingLevels:Int = 0):Texture

createVertexBuffer(numVertices:Int, data32PerVertex:Int, ?bufferUsage:Context3DBufferUsage):VertexBuffer3D

createVideoTexture():VideoTexture

dispose(recreate:Bool = true):Void

drawToBitmapData(destination:BitmapData):Void

drawTriangles(indexBuffer:IndexBuffer3D, firstIndex:Int = 0, numTriangles:Int = -1):Void

present():Void

setBlendFactors(sourceFactor:Context3DBlendFactor, destinationFactor:Context3DBlendFactor):Void

setColorMask(red:Bool, green:Bool, blue:Bool, alpha:Bool):Void

setCulling(triangleFaceToCull:Context3DTriangleFace):Void

setDepthTest(depthMask:Bool, passCompareMode:Context3DCompareMode):Void

setProgram(program:Program3D):Void

setProgramConstantsFromByteArray(programType:Context3DProgramType, firstRegister:Int, numRegisters:Int, data:ByteArray, byteArrayOffset:UInt):Void

setProgramConstantsFromMatrix(programType:Context3DProgramType, firstRegister:Int, matrix:Matrix3D, transposedMatrix:Bool = false):Void

setProgramConstantsFromVector(programType:Context3DProgramType, firstRegister:Int, data:Vector<Float>, numRegisters:Int = -1):Void

setRenderToBackBuffer():Void

setRenderToTexture(texture:TextureBase, enableDepthAndStencil:Bool = false, antiAlias:Int = 0, surfaceSelector:Int = 0, colorOutputIndex:Int = 0):Void

setScissorRectangle(rectangle:Rectangle):Void

setStencilActions(?triangleFace:Context3DTriangleFace, ?compareMode:Context3DCompareMode, ?actionOnBothPass:Context3DStencilAction, ?actionOnDepthFail:Context3DStencilAction, ?actionOnDepthPassStencilFail:Context3DStencilAction):Void

setStencilReferenceValue(referenceValue:UInt, readMask:UInt = 255, writeMask:UInt = 255):Void

setTextureAt(sampler:Int, texture:TextureBase):Void

setVertexBufferAt(index:Int, buffer:VertexBuffer3D, bufferOffset:Int = 0, ?format:Context3DVertexBufferFormat):Void

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/display3D/Context3D.html