package flash.display3D
extends EventDispatcher
Available on flash
staticread onlysupportsVideoTexture:Boolread onlybackBufferHeight:Intread onlybackBufferWidth:Intread onlydriverInfo:StringenableErrorChecking:BoolmaxBackBufferHeight:IntmaxBackBufferWidth:Intprofile:Stringread onlytotalGPUMemory:FloatcreateRectangleTexture:(width:Int, height:Int, format:Context3DTextureFormat, optimizeForRenderToTexture:Bool) ‑> RectangleTexturesetSamplerStateAt:(sampler:Int, wrap:Context3DWrapMode, filter:Context3DTextureFilter, mipfilter:Context3DMipFilter) ‑> Voidclear(red:Float = 0, green:Float = 0, blue:Float = 0, alpha:Float = 1, depth:Float = 1, stencil:UInt = 0, mask:UInt = 0xFFFFFFFF):VoidconfigureBackBuffer(width:Int, height:Int, antiAlias:Int, enableDepthAndStencil:Bool = true, wantsBestResolution:Bool = false, wantsBestResolutionOnBrowserZoom:Bool = false):VoidcreateCubeTexture(size:Int, format:Context3DTextureFormat, optimizeForRenderToTexture:Bool, streamingLevels:Int = 0):CubeTexturecreateIndexBuffer(numIndices:Int, ?bufferUsage:Context3DBufferUsage):IndexBuffer3DcreateProgram():Program3DcreateTexture(width:Int, height:Int, format:Context3DTextureFormat, optimizeForRenderToTexture:Bool, streamingLevels:Int = 0):TexturecreateVertexBuffer(numVertices:Int, data32PerVertex:Int, ?bufferUsage:Context3DBufferUsage):VertexBuffer3DcreateVideoTexture():VideoTexturedispose(recreate:Bool = true):VoiddrawToBitmapData(destination:BitmapData):VoiddrawTriangles(indexBuffer:IndexBuffer3D, firstIndex:Int = 0, numTriangles:Int = -1):Voidpresent():VoidsetBlendFactors(sourceFactor:Context3DBlendFactor, destinationFactor:Context3DBlendFactor):VoidsetColorMask(red:Bool, green:Bool, blue:Bool, alpha:Bool):VoidsetCulling(triangleFaceToCull:Context3DTriangleFace):VoidsetDepthTest(depthMask:Bool, passCompareMode:Context3DCompareMode):VoidsetProgram(program:Program3D):VoidsetProgramConstantsFromByteArray(programType:Context3DProgramType, firstRegister:Int, numRegisters:Int, data:ByteArray, byteArrayOffset:UInt):VoidsetProgramConstantsFromMatrix(programType:Context3DProgramType, firstRegister:Int, matrix:Matrix3D, transposedMatrix:Bool = false):VoidsetProgramConstantsFromVector(programType:Context3DProgramType, firstRegister:Int, data:Vector<Float>, numRegisters:Int = -1):VoidsetRenderToBackBuffer():VoidsetRenderToTexture(texture:TextureBase, enableDepthAndStencil:Bool = false, antiAlias:Int = 0, surfaceSelector:Int = 0, colorOutputIndex:Int = 0):VoidsetScissorRectangle(rectangle:Rectangle):VoidsetStencilActions(?triangleFace:Context3DTriangleFace, ?compareMode:Context3DCompareMode, ?actionOnBothPass:Context3DStencilAction, ?actionOnDepthFail:Context3DStencilAction, ?actionOnDepthPassStencilFail:Context3DStencilAction):VoidsetStencilReferenceValue(referenceValue:UInt, readMask:UInt = 255, writeMask:UInt = 255):VoidsetTextureAt(sampler:Int, texture:TextureBase):VoidsetVertexBufferAt(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