W3cubDocs

/Haxe Flash

Context3D

package flash.display3D

extends EventDispatcher

@:final Available on flash

Variables

read only backBufferHeight:Int

read only backBufferWidth:Int

read only driverInfo:String

enableErrorChecking:Bool

maxBackBufferHeight:Int

maxBackBufferWidth:Int

@:require(flash12) profile:String

read only totalGPUMemory:Float

@:require(flash11_8) createRectangleTexture:Int ‑> Int ‑> Context3DTextureFormat ‑> Bool ‑> RectangleTexture

@:require(flash11_6) setSamplerStateAt:Int ‑> Context3DWrapMode ‑> Context3DTextureFilter ‑> Context3DMipFilter ‑> Void

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

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

createProgram ():Program3D

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

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

createVideoTexture ():VideoTexture

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

drawToBitmapData (destination:BitmapData):Void

@:value({ numTriangles : -1, firstIndex : 0 }) 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

@: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

setRenderToBackBuffer ():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

setScissorRectangle (rectangle:Rectangle):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

Static variables

static read only supportsVideoTexture:Bool

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