forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
54
Kha/Tools/macos/std/flash/display3D/Context3D.hx
Normal file
54
Kha/Tools/macos/std/flash/display3D/Context3D.hx
Normal file
@ -0,0 +1,54 @@
|
||||
package flash.display3D;
|
||||
|
||||
extern final class Context3D extends flash.events.EventDispatcher {
|
||||
@:flash.property var backBufferHeight(get,never) : Int;
|
||||
@:flash.property var backBufferWidth(get,never) : Int;
|
||||
@:flash.property var driverInfo(get,never) : String;
|
||||
@:flash.property var enableErrorChecking(get,set) : Bool;
|
||||
@:flash.property var maxBackBufferHeight(get,set) : Int;
|
||||
@:flash.property var maxBackBufferWidth(get,set) : Int;
|
||||
@:flash.property @:require(flash12) var profile(get,never) : String;
|
||||
@:flash.property var totalGPUMemory(get,never) : Float;
|
||||
function clear(red : Float = 0, green : Float = 0, blue : Float = 0, alpha : Float = 1, depth : Float = 1, stencil : UInt = 0, mask : UInt = 0xFFFFFFFF) : Void;
|
||||
function configureBackBuffer(width : Int, height : Int, antiAlias : Int, enableDepthAndStencil : Bool = true, wantsBestResolution : Bool = false, wantsBestResolutionOnBrowserZoom : Bool = false) : Void;
|
||||
function createCubeTexture(size : Int, format : Context3DTextureFormat, optimizeForRenderToTexture : Bool, streamingLevels : Int = 0) : flash.display3D.textures.CubeTexture;
|
||||
function createIndexBuffer(numIndices : Int, ?bufferUsage : Context3DBufferUsage) : IndexBuffer3D;
|
||||
function createProgram() : Program3D;
|
||||
@:require(flash11_8) 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, ?bufferUsage : Context3DBufferUsage) : VertexBuffer3D;
|
||||
function createVideoTexture() : flash.display3D.textures.VideoTexture;
|
||||
function dispose(recreate : Bool = true) : Void;
|
||||
function drawToBitmapData(destination : flash.display.BitmapData) : Void;
|
||||
function drawTriangles(indexBuffer : IndexBuffer3D, firstIndex : Int = 0, numTriangles : Int = -1) : Void;
|
||||
private function get_backBufferHeight() : Int;
|
||||
private function get_backBufferWidth() : Int;
|
||||
private function get_driverInfo() : String;
|
||||
private function get_enableErrorChecking() : Bool;
|
||||
private function get_maxBackBufferHeight() : Int;
|
||||
private function get_maxBackBufferWidth() : Int;
|
||||
private function get_profile() : String;
|
||||
private function get_totalGPUMemory() : Float;
|
||||
function present() : Void;
|
||||
function setBlendFactors(sourceFactor : Context3DBlendFactor, destinationFactor : Context3DBlendFactor) : Void;
|
||||
function setColorMask(red : Bool, green : Bool, blue : Bool, alpha : Bool) : Void;
|
||||
function setCulling(triangleFaceToCull : Context3DTriangleFace) : Void;
|
||||
function setDepthTest(depthMask : Bool, passCompareMode : Context3DCompareMode) : Void;
|
||||
function setProgram(program : Program3D) : Void;
|
||||
@:require(flash11_2) function setProgramConstantsFromByteArray(programType : Context3DProgramType, firstRegister : Int, numRegisters : Int, data : flash.utils.ByteArray, byteArrayOffset : UInt) : Void;
|
||||
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;
|
||||
@: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;
|
||||
function setTextureAt(sampler : Int, texture : flash.display3D.textures.TextureBase) : Void;
|
||||
function setVertexBufferAt(index : Int, buffer : VertexBuffer3D, bufferOffset : Int = 0, ?format : Context3DVertexBufferFormat) : Void;
|
||||
private function set_enableErrorChecking(value : Bool) : Bool;
|
||||
private function set_maxBackBufferHeight(value : Int) : Int;
|
||||
private function set_maxBackBufferWidth(value : Int) : Int;
|
||||
@:flash.property static var supportsVideoTexture(get,never) : Bool;
|
||||
private static function get_supportsVideoTexture() : Bool;
|
||||
}
|
14
Kha/Tools/macos/std/flash/display3D/Context3DBlendFactor.hx
Normal file
14
Kha/Tools/macos/std/flash/display3D/Context3DBlendFactor.hx
Normal file
@ -0,0 +1,14 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DBlendFactor") extern enum abstract Context3DBlendFactor(String) {
|
||||
var DESTINATION_ALPHA;
|
||||
var DESTINATION_COLOR;
|
||||
var ONE;
|
||||
var ONE_MINUS_DESTINATION_ALPHA;
|
||||
var ONE_MINUS_DESTINATION_COLOR;
|
||||
var ONE_MINUS_SOURCE_ALPHA;
|
||||
var ONE_MINUS_SOURCE_COLOR;
|
||||
var SOURCE_ALPHA;
|
||||
var SOURCE_COLOR;
|
||||
var ZERO;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DBufferUsage") @:require(flash12) extern enum abstract Context3DBufferUsage(String) {
|
||||
var DYNAMIC_DRAW;
|
||||
var STATIC_DRAW;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.display3D;
|
||||
|
||||
extern class Context3DClearMask {
|
||||
static final ALL : Int;
|
||||
static final COLOR : Int;
|
||||
static final DEPTH : Int;
|
||||
static final STENCIL : Int;
|
||||
}
|
12
Kha/Tools/macos/std/flash/display3D/Context3DCompareMode.hx
Normal file
12
Kha/Tools/macos/std/flash/display3D/Context3DCompareMode.hx
Normal file
@ -0,0 +1,12 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DCompareMode") extern enum abstract Context3DCompareMode(String) {
|
||||
var ALWAYS;
|
||||
var EQUAL;
|
||||
var GREATER;
|
||||
var GREATER_EQUAL;
|
||||
var LESS;
|
||||
var LESS_EQUAL;
|
||||
var NEVER;
|
||||
var NOT_EQUAL;
|
||||
}
|
6
Kha/Tools/macos/std/flash/display3D/Context3DFillMode.hx
Normal file
6
Kha/Tools/macos/std/flash/display3D/Context3DFillMode.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DFillMode") @:require(flash16) extern enum abstract Context3DFillMode(String) {
|
||||
var SOLID;
|
||||
var WIREFRAME;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DMipFilter") extern enum abstract Context3DMipFilter(String) {
|
||||
var MIPLINEAR;
|
||||
var MIPNEAREST;
|
||||
var MIPNONE;
|
||||
}
|
10
Kha/Tools/macos/std/flash/display3D/Context3DProfile.hx
Normal file
10
Kha/Tools/macos/std/flash/display3D/Context3DProfile.hx
Normal file
@ -0,0 +1,10 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DProfile") extern enum abstract Context3DProfile(String) {
|
||||
var BASELINE;
|
||||
var BASELINE_CONSTRAINED;
|
||||
var BASELINE_EXTENDED;
|
||||
var STANDARD;
|
||||
var STANDARD_CONSTRAINED;
|
||||
var STANDARD_EXTENDED;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DProgramType") extern enum abstract Context3DProgramType(String) {
|
||||
var FRAGMENT;
|
||||
var VERTEX;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DRenderMode") extern enum abstract Context3DRenderMode(String) {
|
||||
var AUTO;
|
||||
var SOFTWARE;
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DStencilAction") extern enum abstract Context3DStencilAction(String) {
|
||||
var DECREMENT_SATURATE;
|
||||
var DECREMENT_WRAP;
|
||||
var INCREMENT_SATURATE;
|
||||
var INCREMENT_WRAP;
|
||||
var INVERT;
|
||||
var KEEP;
|
||||
var SET;
|
||||
var ZERO;
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DTextureFilter") extern enum abstract Context3DTextureFilter(String) {
|
||||
var ANISOTROPIC16X;
|
||||
var ANISOTROPIC2X;
|
||||
var ANISOTROPIC4X;
|
||||
var ANISOTROPIC8X;
|
||||
var LINEAR;
|
||||
var NEAREST;
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DTextureFormat") extern enum abstract Context3DTextureFormat(String) {
|
||||
var BGRA;
|
||||
var BGRA_PACKED;
|
||||
var BGR_PACKED;
|
||||
var COMPRESSED;
|
||||
var COMPRESSED_ALPHA;
|
||||
var RGBA_HALF_FLOAT;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DTriangleFace") extern enum abstract Context3DTriangleFace(String) {
|
||||
var BACK;
|
||||
var FRONT;
|
||||
var FRONT_AND_BACK;
|
||||
var NONE;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DVertexBufferFormat") extern enum abstract Context3DVertexBufferFormat(String) {
|
||||
var BYTES_4;
|
||||
var FLOAT_1;
|
||||
var FLOAT_2;
|
||||
var FLOAT_3;
|
||||
var FLOAT_4;
|
||||
}
|
8
Kha/Tools/macos/std/flash/display3D/Context3DWrapMode.hx
Normal file
8
Kha/Tools/macos/std/flash/display3D/Context3DWrapMode.hx
Normal file
@ -0,0 +1,8 @@
|
||||
package flash.display3D;
|
||||
|
||||
@:native("flash.display3D.Context3DWrapMode") extern enum abstract Context3DWrapMode(String) {
|
||||
var CLAMP;
|
||||
var CLAMP_U_REPEAT_V;
|
||||
var REPEAT;
|
||||
var REPEAT_U_CLAMP_V;
|
||||
}
|
7
Kha/Tools/macos/std/flash/display3D/IndexBuffer3D.hx
Normal file
7
Kha/Tools/macos/std/flash/display3D/IndexBuffer3D.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.display3D;
|
||||
|
||||
extern final class IndexBuffer3D {
|
||||
function dispose() : Void;
|
||||
function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : Int, startOffset : Int, count : Int) : Void;
|
||||
function uploadFromVector(data : flash.Vector<UInt>, startOffset : Int, count : Int) : Void;
|
||||
}
|
6
Kha/Tools/macos/std/flash/display3D/Program3D.hx
Normal file
6
Kha/Tools/macos/std/flash/display3D/Program3D.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.display3D;
|
||||
|
||||
extern final class Program3D {
|
||||
function dispose() : Void;
|
||||
function upload(vertexProgram : flash.utils.ByteArray, fragmentProgram : flash.utils.ByteArray) : Void;
|
||||
}
|
7
Kha/Tools/macos/std/flash/display3D/VertexBuffer3D.hx
Normal file
7
Kha/Tools/macos/std/flash/display3D/VertexBuffer3D.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.display3D;
|
||||
|
||||
extern class VertexBuffer3D {
|
||||
function dispose() : Void;
|
||||
function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : Int, startVertex : Int, numVertices : Int) : Void;
|
||||
function uploadFromVector(data : flash.Vector<Float>, startVertex : Int, numVertices : Int) : Void;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package flash.display3D.textures;
|
||||
|
||||
extern final class CubeTexture extends TextureBase {
|
||||
function uploadCompressedTextureFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt, async : Bool = false) : Void;
|
||||
function uploadFromBitmapData(source : flash.display.BitmapData, side : UInt, miplevel : UInt = 0) : Void;
|
||||
function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt, side : UInt, miplevel : UInt = 0) : Void;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package flash.display3D.textures;
|
||||
|
||||
extern final class RectangleTexture extends TextureBase {
|
||||
function new() : Void;
|
||||
function uploadFromBitmapData(source : flash.display.BitmapData) : Void;
|
||||
function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt) : Void;
|
||||
}
|
7
Kha/Tools/macos/std/flash/display3D/textures/Texture.hx
Normal file
7
Kha/Tools/macos/std/flash/display3D/textures/Texture.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.display3D.textures;
|
||||
|
||||
extern final class Texture extends TextureBase {
|
||||
function uploadCompressedTextureFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt, async : Bool = false) : Void;
|
||||
function uploadFromBitmapData(source : flash.display.BitmapData, miplevel : UInt = 0) : Void;
|
||||
function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt, miplevel : UInt = 0) : Void;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package flash.display3D.textures;
|
||||
|
||||
extern class TextureBase extends flash.events.EventDispatcher {
|
||||
function dispose() : Void;
|
||||
}
|
11
Kha/Tools/macos/std/flash/display3D/textures/VideoTexture.hx
Normal file
11
Kha/Tools/macos/std/flash/display3D/textures/VideoTexture.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package flash.display3D.textures;
|
||||
|
||||
extern final class VideoTexture extends TextureBase {
|
||||
@:flash.property var videoHeight(get,never) : Int;
|
||||
@:flash.property var videoWidth(get,never) : Int;
|
||||
function new() : Void;
|
||||
function attachCamera(theCamera : flash.media.Camera) : Void;
|
||||
function attachNetStream(netStream : flash.net.NetStream) : Void;
|
||||
private function get_videoHeight() : Int;
|
||||
private function get_videoWidth() : Int;
|
||||
}
|
Reference in New Issue
Block a user