Minor fixes

This commit is contained in:
Joshua Granick
2018-07-05 14:58:29 -07:00
parent c926e347cb
commit c9d522da6b
3 changed files with 21 additions and 2 deletions

View File

@@ -61,6 +61,9 @@ class FlashWindow {
if (stage == null) stage = Lib.current.stage;
parent.__width = stage.stageWidth;
parent.__height = stage.stageHeight;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

View File

@@ -50,5 +50,13 @@ import lime.utils.Log;
#else
typedef GLProgram = Dynamic;
@:forward abstract GLProgram(Dynamic) from Dynamic to Dynamic {
public static function fromSources (gl:Dynamic, vertexSource:String, fragmentSource:String):GLProgram {
return null;
}
}
#end

View File

@@ -50,5 +50,13 @@ import lime.utils.Log;
#else
typedef GLShader = Dynamic;
@:forward abstract GLShader(Dynamic) from Dynamic to Dynamic {
public static function fromSources (gl:Dynamic, source:String, type:Int):GLShader {
return null;
}
}
#end