Open hopewise opened 4 years ago
I'm not getting any errors in Haxe 4.2.4, but I can confirm that there's a problem with Image
embedding. I'm testing the DisplayingABitmap sample, with a few changes:
@:bitmap("Assets/openfl.png") class OpenFLGraphic extends openfl.display.BitmapData {}
@:image("Assets/openfl.png") class LimeGraphic extends lime.graphics.Image {}
//...
var bitmap = new Bitmap(new OpenFLGraphic(512, 200));
addChild(bitmap);
bitmap = new Bitmap(BitmapData.fromImage(new LimeGraphic()));
bitmap.y = 200;
addChild(bitmap);
The OpenFL one works fine except that its width
and height
are both 0 in HTML5. The Lime one is invisible in HTML5. Both work correctly on other targets. I didn't spot any major differences between the two AssetsMacro
classes. No idea what's going on.
Trying to build at Ubuntu, I get this error:
and this error:
using haxe 4.0.5