Adding provisional html5 support, normal GL access appears to be working fine, but no Assets support and lacking ByteArray implementations to be fixed later.

This commit is contained in:
underscorediscovery
2013-06-25 23:28:42 -02:30
parent ccb154fd2b
commit 9df20d92cf
38 changed files with 5111 additions and 2018 deletions

View File

@@ -0,0 +1,38 @@
package nme;
import lime.utils.Assets;
class AssetData {
public static var className = new Map <String, Dynamic> ();
public static var library = new Map <String, LibraryType> ();
public static var path = new Map <String, String> ();
public static var type = new Map <String, AssetType> ();
private static var initialized:Bool = false;
public static function initialize ():Void {
if (!initialized) {
::if (assets != null)::::foreach assets::::if (type == "font")::className.set ("::id::", nme.NME_::flatName::);::else::path.set ("::id::", "::resourceName::");::end::
type.set ("::id::", Reflect.field (AssetType, "::type::".toUpperCase ()));
::end::::end::
::if (libraries != null)::::foreach libraries::library.set ("::name::", Reflect.field (LibraryType, "::type::".toUpperCase ()));
::end::::end::
initialized = true;
}
}
}
::foreach assets::::if (type == "font")::class NME_::flatName:: extends flash.text.Font { }::end::
::end::