Static variables

@:flash.propertystaticread onlysupportsVideoTexture:Bool

Variables

@:flash.propertyread onlybackBufferHeight:Int

@:flash.propertyread onlybackBufferWidth:Int

@:flash.propertyread onlydriverInfo:String

@:flash.propertyenableErrorChecking:Bool

@:flash.propertymaxBackBufferHeight:Int

@:flash.propertymaxBackBufferWidth:Int

@:flash.property@:require(flash12)profile:String

@:flash.propertyread onlytotalGPUMemory:Float

@:require(flash15)createVideoTexture:() ‑> VideoTexture

Methods

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

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

@:value({ streamingLevels : 0 })createCubeTexture(size:Int, format:Context3DTextureFormat, optimizeForRenderToTexture:Bool, streamingLevels:Int = 0):CubeTexture

@:value({ format : AGAL })inlinecreateProgram(format:Context3DProgramFormat = AGAL):Program3D

@:require(flash11_8)createRectangleTexture(width:Int, height:Int, format:Context3DTextureFormat, optimizeForRenderToTexture:Bool):RectangleTexture

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

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

@:value({ recreate : true })dispose(recreate:Bool = true):Void

@:value({ destPoint : null, srcRect : null })drawToBitmapData(destination:BitmapData, ?srcRect:Null<Rectangle>, ?destPoint:Point):Void

@:value({ numTriangles : -1, firstIndex : 0 })drawTriangles(indexBuffer:IndexBuffer3D, firstIndex:Int = 0, numTriangles:Int = -1):Void

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

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

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

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

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

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

@:require(flash11_6)setSamplerStateAt(sampler:Int, wrap:Context3DWrapMode, filter:Context3DTextureFilter, mipfilter:Context3DMipFilter):Void

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

@:value({ writeMask : 255, readMask : 255 })setStencilReferenceValue(referenceValue:UInt, readMask:UInt = 255, writeMask:UInt = 255):Void

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

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

Inherited Variables

Inherited Methods

Defined by EventDispatcher

@:value({ useWeakReference : false, priority : 0, useCapture : false })addEventListener<T>(type:EventType<T>, listener:T ‑> Void, useCapture:Bool = false, priority:Int = 0, useWeakReference:Bool = false):Void

@:value({ useCapture : false })removeEventListener<T>(type:EventType<T>, listener:T ‑> Void, useCapture:Bool = false):Void