소스 검색

Merge pull request #2641 from pshtif/development

Flash 12 Stage3D changes.
Nicolas Cannasse 11 년 전
부모
커밋
a6032f87ed
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      std/flash/display/Stage3D.hx
  2. 1 0
      std/flash/display3D/Context3D.hx

+ 1 - 0
std/flash/display/Stage3D.hx

@@ -6,4 +6,5 @@ package flash.display;
 	var x : Float;
 	var y : Float;
 	function requestContext3D(?context3DRenderMode : String, ?profile : flash.display3D.Context3DProfile) : Void;
+	@:require(flash12) function requestContext3DMatchingProfiles(profiles:Vector<String>) : Void;
 }

+ 1 - 0
std/flash/display3D/Context3D.hx

@@ -3,6 +3,7 @@ package flash.display3D;
 @:final extern class Context3D extends flash.events.EventDispatcher {
 	var driverInfo(default,null) : String;
 	var enableErrorChecking : Bool;
+	@:require(flash12) var profile : String;
 	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) : Void;
 	function createCubeTexture(size : Int, format : Context3DTextureFormat, optimizeForRenderToTexture : Bool, streamingLevels : Int = 0) : flash.display3D.textures.CubeTexture;