|
@@ -8,10 +8,9 @@ package flash.display3D;
|
|
|
function createCubeTexture(size : Int, format : Context3DTextureFormat, optimizeForRenderToTexture : Bool, streamingLevels : Int = 0) : flash.display3D.textures.CubeTexture;
|
|
|
function createIndexBuffer(numIndices : Int) : IndexBuffer3D;
|
|
|
function createProgram() : Program3D;
|
|
|
- @:require(flash11_4) function createRectangleTexture(width : Int, height : Int, format : Context3DTextureFormat, optimizeForRenderToTexture : Bool) : flash.display3D.textures.RectangleTexture;
|
|
|
function createTexture(width : Int, height : Int, format : Context3DTextureFormat, optimizeForRenderToTexture : Bool, streamingLevels : Int = 0) : flash.display3D.textures.Texture;
|
|
|
function createVertexBuffer(numVertices : Int, data32PerVertex : Int) : VertexBuffer3D;
|
|
|
- function dispose() : Void;
|
|
|
+ function dispose(recreate : Bool = true) : Void;
|
|
|
function drawToBitmapData(destination : flash.display.BitmapData) : Void;
|
|
|
function drawTriangles(indexBuffer : IndexBuffer3D, firstIndex : Int = 0, numTriangles : Int = -1) : Void;
|
|
|
function present() : Void;
|
|
@@ -24,7 +23,8 @@ package flash.display3D;
|
|
|
function setProgramConstantsFromMatrix(programType : Context3DProgramType, firstRegister : Int, matrix : flash.geom.Matrix3D, transposedMatrix : Bool = false) : Void;
|
|
|
function setProgramConstantsFromVector(programType : Context3DProgramType, firstRegister : Int, data : flash.Vector<Float>, numRegisters : Int = -1) : Void;
|
|
|
function setRenderToBackBuffer() : Void;
|
|
|
- function setRenderToTexture(texture : flash.display3D.textures.TextureBase, enableDepthAndStencil : Bool = false, antiAlias : Int = 0, surfaceSelector : Int = 0, colorOutputIndex : Int = 0) : Void;
|
|
|
+ function setRenderToTexture(texture : flash.display3D.textures.TextureBase, enableDepthAndStencil : Bool = false, antiAlias : Int = 0, surfaceSelector : Int = 0) : Void;
|
|
|
+ @:require(flash11_6) function setSamplerStateAt(sampler : Int, wrap : Context3DWrapMode, filter : Context3DTextureFilter, mipfilter : Context3DMipFilter) : Void;
|
|
|
function setScissorRectangle(rectangle : flash.geom.Rectangle) : Void;
|
|
|
function setStencilActions(?triangleFace : Context3DTriangleFace, ?compareMode : Context3DCompareMode, ?actionOnBothPass : Context3DStencilAction, ?actionOnDepthFail : Context3DStencilAction, ?actionOnDepthPassStencilFail : Context3DStencilAction) : Void;
|
|
|
function setStencilReferenceValue(referenceValue : UInt, readMask : UInt = 255, writeMask : UInt = 255) : Void;
|