mirror of https://github.com/axmolengine/axmol.git
Merge pull request #2189 from dumganhar/master
Synchronizing cocos2d-js-test to the latest one.
This commit is contained in:
commit
234300ce18
|
@ -104,6 +104,8 @@
|
|||
1A82F5D1169AC71F00C4B13A /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5D0169AC71F00C4B13A /* libsqlite3.dylib */; };
|
||||
1A82F5D8169AC75500C4B13A /* LocalStorage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5D5169AC75500C4B13A /* LocalStorage.cpp */; };
|
||||
1A82F5D9169AC75500C4B13A /* LocalStorageAndroid.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5D7169AC75500C4B13A /* LocalStorageAndroid.cpp */; };
|
||||
1AA51AD116F71307000FDF05 /* jsb_cocos2d_constants.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AA51AD016F71307000FDF05 /* jsb_cocos2d_constants.js */; };
|
||||
1AA51AD216F7131E000FDF05 /* jsb_cocos2d_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51AD016F71307000FDF05 /* jsb_cocos2d_constants.js */; };
|
||||
1AAC78F916EDC13D00B97F83 /* jsb_cocos2dx_auto_api.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC78F616EDC13D00B97F83 /* jsb_cocos2dx_auto_api.js */; };
|
||||
1AAC78FA16EDC13D00B97F83 /* jsb_cocos2dx_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC78F716EDC13D00B97F83 /* jsb_cocos2dx_auto.cpp */; };
|
||||
1AAC792B16EDC26E00B97F83 /* CCControl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC78FD16EDC26E00B97F83 /* CCControl.cpp */; };
|
||||
|
@ -306,6 +308,7 @@
|
|||
1A82F5D5169AC75500C4B13A /* LocalStorage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorage.cpp; sourceTree = "<group>"; };
|
||||
1A82F5D6169AC75500C4B13A /* LocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalStorage.h; sourceTree = "<group>"; };
|
||||
1A82F5D7169AC75500C4B13A /* LocalStorageAndroid.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorageAndroid.cpp; sourceTree = "<group>"; };
|
||||
1AA51AD016F71307000FDF05 /* jsb_cocos2d_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d_constants.js; sourceTree = "<group>"; };
|
||||
1AAC78F616EDC13D00B97F83 /* jsb_cocos2dx_auto_api.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2dx_auto_api.js; sourceTree = "<group>"; };
|
||||
1AAC78F716EDC13D00B97F83 /* jsb_cocos2dx_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_auto.cpp; sourceTree = "<group>"; };
|
||||
1AAC78F816EDC13D00B97F83 /* jsb_cocos2dx_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_auto.hpp; sourceTree = "<group>"; };
|
||||
|
@ -629,13 +632,14 @@
|
|||
15A3D0831682E721002FB0C5 /* js */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1A27579F1697FA7200504026 /* jsb.js */,
|
||||
1A2757991697FA7200504026 /* jsb_chipmunk.js */,
|
||||
1A27579A1697FA7200504026 /* jsb_cocos2d.js */,
|
||||
1AA51AD016F71307000FDF05 /* jsb_cocos2d_constants.js */,
|
||||
1A27579B1697FA7200504026 /* jsb_cocosbuilder.js */,
|
||||
1A27579C1697FA7200504026 /* jsb_debugger.js */,
|
||||
1A27579D1697FA7200504026 /* jsb_opengl.js */,
|
||||
1A27579E1697FA7200504026 /* jsb_sys.js */,
|
||||
1A27579F1697FA7200504026 /* jsb.js */,
|
||||
);
|
||||
path = js;
|
||||
sourceTree = "<group>";
|
||||
|
@ -857,6 +861,7 @@
|
|||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1AA51AD216F7131E000FDF05 /* jsb_cocos2d_constants.js in Resources */,
|
||||
1A2758101698218C00504026 /* jsb_chipmunk.js in Resources */,
|
||||
1A2758111698218C00504026 /* jsb_cocos2d.js in Resources */,
|
||||
1A2758121698218C00504026 /* jsb_cocosbuilder.js in Resources */,
|
||||
|
@ -995,6 +1000,7 @@
|
|||
1AAC794216EDC2C700B97F83 /* jsb_cocos2dx_extension_manual.cpp in Sources */,
|
||||
1AAC794616EDC2D700B97F83 /* jsb_cocos2dx_extension_auto_api.js in Sources */,
|
||||
1AAC794716EDC2D700B97F83 /* jsb_cocos2dx_extension_auto.cpp in Sources */,
|
||||
1AA51AD116F71307000FDF05 /* jsb_cocos2d_constants.js in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
|
@ -108,6 +108,8 @@
|
|||
1A82F5D1169AC71F00C4B13A /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5D0169AC71F00C4B13A /* libsqlite3.dylib */; };
|
||||
1A82F5D8169AC75500C4B13A /* LocalStorage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5D5169AC75500C4B13A /* LocalStorage.cpp */; };
|
||||
1A82F5D9169AC75500C4B13A /* LocalStorageAndroid.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5D7169AC75500C4B13A /* LocalStorageAndroid.cpp */; };
|
||||
1AA51AD516F71386000FDF05 /* jsb_cocos2d_constants.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AA51AD416F71386000FDF05 /* jsb_cocos2d_constants.js */; };
|
||||
1AA51AD616F713F5000FDF05 /* jsb_cocos2d_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51AD416F71386000FDF05 /* jsb_cocos2d_constants.js */; };
|
||||
1AAC794F16EDC4F400B97F83 /* jsb_cocos2dx_auto_api.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC794916EDC4F400B97F83 /* jsb_cocos2dx_auto_api.js */; };
|
||||
1AAC795016EDC4F400B97F83 /* jsb_cocos2dx_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC794A16EDC4F400B97F83 /* jsb_cocos2dx_auto.cpp */; };
|
||||
1AAC795516EDC62500B97F83 /* jsb_cocos2dx_extension_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC795316EDC62500B97F83 /* jsb_cocos2dx_extension_manual.cpp */; };
|
||||
|
@ -346,6 +348,7 @@
|
|||
1A82F5D5169AC75500C4B13A /* LocalStorage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorage.cpp; sourceTree = "<group>"; };
|
||||
1A82F5D6169AC75500C4B13A /* LocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalStorage.h; sourceTree = "<group>"; };
|
||||
1A82F5D7169AC75500C4B13A /* LocalStorageAndroid.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorageAndroid.cpp; sourceTree = "<group>"; };
|
||||
1AA51AD416F71386000FDF05 /* jsb_cocos2d_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d_constants.js; sourceTree = "<group>"; };
|
||||
1AAC794916EDC4F400B97F83 /* jsb_cocos2dx_auto_api.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2dx_auto_api.js; sourceTree = "<group>"; };
|
||||
1AAC794A16EDC4F400B97F83 /* jsb_cocos2dx_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_auto.cpp; sourceTree = "<group>"; };
|
||||
1AAC794B16EDC4F400B97F83 /* jsb_cocos2dx_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_auto.hpp; sourceTree = "<group>"; };
|
||||
|
@ -753,6 +756,7 @@
|
|||
15A3D0831682E721002FB0C5 /* js */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1AA51AD416F71386000FDF05 /* jsb_cocos2d_constants.js */,
|
||||
1A2757991697FA7200504026 /* jsb_chipmunk.js */,
|
||||
1A27579A1697FA7200504026 /* jsb_cocos2d.js */,
|
||||
1A27579B1697FA7200504026 /* jsb_cocosbuilder.js */,
|
||||
|
@ -907,6 +911,7 @@
|
|||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1AA51AD616F713F5000FDF05 /* jsb_cocos2d_constants.js in Resources */,
|
||||
1A2758101698218C00504026 /* jsb_chipmunk.js in Resources */,
|
||||
1A2758111698218C00504026 /* jsb_cocos2d.js in Resources */,
|
||||
1A2758121698218C00504026 /* jsb_cocosbuilder.js in Resources */,
|
||||
|
@ -1028,6 +1033,7 @@
|
|||
1AAC795516EDC62500B97F83 /* jsb_cocos2dx_extension_manual.cpp in Sources */,
|
||||
1AAC795916EDC63A00B97F83 /* jsb_cocos2dx_extension_auto_api.js in Sources */,
|
||||
1AAC795A16EDC63A00B97F83 /* jsb_cocos2dx_extension_auto.cpp in Sources */,
|
||||
1AA51AD516F71386000FDF05 /* jsb_cocos2d_constants.js in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
|
@ -66,6 +66,8 @@
|
|||
1A82F5E7169AC86100C4B13A /* LocalStorage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5E4169AC86100C4B13A /* LocalStorage.cpp */; };
|
||||
1A82F5E8169AC86100C4B13A /* LocalStorageAndroid.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5E6169AC86100C4B13A /* LocalStorageAndroid.cpp */; };
|
||||
1A82F5EA169AC8DD00C4B13A /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5E9169AC8DD00C4B13A /* libsqlite3.dylib */; };
|
||||
1AA51AD916F71492000FDF05 /* jsb_cocos2d_constants.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AA51AD816F71492000FDF05 /* jsb_cocos2d_constants.js */; };
|
||||
1AA51ADA16F7149D000FDF05 /* jsb_cocos2d_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51AD816F71492000FDF05 /* jsb_cocos2d_constants.js */; };
|
||||
1AAC795F16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC795C16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js */; };
|
||||
1AAC796016EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC795D16EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp */; };
|
||||
A9706D8416A0C1FA0090A01D /* main.debug.js in Sources */ = {isa = PBXBuildFile; fileRef = A9706D8316A0C1FA0090A01D /* main.debug.js */; };
|
||||
|
@ -167,6 +169,7 @@
|
|||
1A82F5E5169AC86100C4B13A /* LocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalStorage.h; sourceTree = "<group>"; };
|
||||
1A82F5E6169AC86100C4B13A /* LocalStorageAndroid.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorageAndroid.cpp; sourceTree = "<group>"; };
|
||||
1A82F5E9169AC8DD00C4B13A /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = usr/lib/libsqlite3.dylib; sourceTree = SDKROOT; };
|
||||
1AA51AD816F71492000FDF05 /* jsb_cocos2d_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d_constants.js; sourceTree = "<group>"; };
|
||||
1AAC795C16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2dx_auto_api.js; sourceTree = "<group>"; };
|
||||
1AAC795D16EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_auto.cpp; sourceTree = "<group>"; };
|
||||
1AAC795E16EDC7C000B97F83 /* jsb_cocos2dx_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_auto.hpp; sourceTree = "<group>"; };
|
||||
|
@ -378,6 +381,7 @@
|
|||
15A3D2A61682EE81002FB0C5 /* js */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1AA51AD816F71492000FDF05 /* jsb_cocos2d_constants.js */,
|
||||
A9706D8316A0C1FA0090A01D /* main.debug.js */,
|
||||
1A177EB01698261C00C9AC27 /* jsb_chipmunk.js */,
|
||||
1A177EB11698261C00C9AC27 /* jsb_cocos2d.js */,
|
||||
|
@ -467,6 +471,7 @@
|
|||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1AA51ADA16F7149D000FDF05 /* jsb_cocos2d_constants.js in Resources */,
|
||||
1A177EBE1698262E00C9AC27 /* jsb_chipmunk.js in Resources */,
|
||||
1A177EBF1698262E00C9AC27 /* jsb_cocos2d.js in Resources */,
|
||||
1A177EC01698262E00C9AC27 /* jsb_cocosbuilder.js in Resources */,
|
||||
|
@ -527,6 +532,7 @@
|
|||
A9706D8416A0C1FA0090A01D /* main.debug.js in Sources */,
|
||||
1AAC795F16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js in Sources */,
|
||||
1AAC796016EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp in Sources */,
|
||||
1AA51AD916F71492000FDF05 /* jsb_cocos2d_constants.js in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit aebbb51742c5f8f01af670aa89a12c54de296438
|
||||
Subproject commit dcf54959746812c73d626731ffc31b6e7e8bb210
|
|
@ -1 +1 @@
|
|||
ac9538f501938e68d78bc40af5feebd3e50d0730
|
||||
8b69641f7f7438303572b802404917dced43feab
|
|
@ -1 +1 @@
|
|||
d4c0a2ec4ee124a03aabebf924deab3229c33d89
|
||||
3dcbaa7dfe7b41891ec0b0babea5c25821e2d164
|
|
@ -255,6 +255,13 @@ JSBool JSBCore_os(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
return JS_TRUE;
|
||||
};
|
||||
|
||||
JSBool JSB_core_restartVM(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JSB_PRECONDITION2(argc==0, cx, JS_FALSE, "Invalid number of arguments in executeScript");
|
||||
ScriptingCore::getInstance()->reset();
|
||||
JS_SET_RVAL(cx, vp, JSVAL_VOID);
|
||||
return JS_TRUE;
|
||||
};
|
||||
|
||||
void registerDefaultClasses(JSContext* cx, JSObject* global) {
|
||||
// first, try to get the ns
|
||||
|
@ -291,6 +298,7 @@ void registerDefaultClasses(JSContext* cx, JSObject* global) {
|
|||
JS_DefineFunction(cx, global, "__getPlatform", JSBCore_platform, 0, JSPROP_READONLY | JSPROP_PERMANENT);
|
||||
JS_DefineFunction(cx, global, "__getOS", JSBCore_os, 0, JSPROP_READONLY | JSPROP_PERMANENT);
|
||||
JS_DefineFunction(cx, global, "__getVersion", JSBCore_version, 0, JSPROP_READONLY | JSPROP_PERMANENT);
|
||||
JS_DefineFunction(cx, global, "__restartVM", JSB_core_restartVM, 0, JSPROP_READONLY | JSPROP_PERMANENT | JSPROP_ENUMERATE );
|
||||
}
|
||||
|
||||
void sc_finalize(JSFreeOp *freeOp, JSObject *obj) {
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
// Chipmunk defines
|
||||
//
|
||||
|
||||
require('jsb_chipmunk_constants.js');
|
||||
|
||||
var cp = cp || {};
|
||||
|
||||
cp.v = cc.p;
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* AUTOGENERATED FILE. DO NOT EDIT IT
|
||||
* Generated by "generate_jsb.py -c chipmunk_jsb.ini" on 2013-03-05
|
||||
* Script version: v0.6
|
||||
*/
|
||||
|
||||
var cp = cp || {};
|
||||
cp.ALLOW_PRIVATE_ACCESS = 0x1;
|
||||
cp.ALL_LAYERS = 0xffffffff;
|
||||
cp.BUFFER_BYTES = 0x8000;
|
||||
cp.CIRCLE_SHAPE = 0x0;
|
||||
cp.HASH_COEF = 0xc75f71e1;
|
||||
cp.MAX_CONTACTS_PER_ARBITER = 0x4;
|
||||
cp.NO_GROUP = 0x0;
|
||||
cp.NUM_SHAPES = 0x3;
|
||||
cp.POLY_SHAPE = 0x2;
|
||||
cp.SEGMENT_SHAPE = 0x1;
|
||||
cp.USE_CGPOINTS = 0x1;
|
||||
cp.USE_DOUBLES = 0x0;
|
||||
cp.VERSION_MAJOR = 0x6;
|
||||
cp.VERSION_MINOR = 0x1;
|
||||
cp.VERSION_RELEASE = 0x1;
|
|
@ -2,6 +2,8 @@
|
|||
// cocos2d constants
|
||||
//
|
||||
|
||||
require('jsb_cocos2d_constants.js');
|
||||
|
||||
var cc = cc || {};
|
||||
|
||||
cc.DIRECTOR_PROJECTION_2D = 0;
|
||||
|
@ -59,6 +61,7 @@ cc.GREEN = {r:0, g:255, b:0};
|
|||
cc.BLUE = {r:0, g:0, b:255};
|
||||
cc.BLACK = {r:0, g:0, b:0};
|
||||
cc.WHITE = {r:255, g:255, b:255};
|
||||
cc.YELLOW = {r:255, g:255, b:0};
|
||||
|
||||
cc.POINT_ZERO = {x:0, y:0};
|
||||
|
||||
|
|
|
@ -0,0 +1,170 @@
|
|||
/*
|
||||
* AUTOGENERATED FILE. DO NOT EDIT IT
|
||||
* Generated by "generate_jsb.py -c cocos2d_jsb.ini" on 2013-03-10
|
||||
* Script version: v0.6
|
||||
*/
|
||||
|
||||
var cc = cc || {};
|
||||
cc.SPRITE_INDEX_NOT_INITIALIZED = 0xffffffff;
|
||||
cc.TMX_ORIENTATION_HEX = 0x1;
|
||||
cc.TMX_ORIENTATION_ISO = 0x2;
|
||||
cc.TMX_ORIENTATION_ORTHO = 0x0;
|
||||
cc.Z_COMPRESSION_BZIP2 = 0x1;
|
||||
cc.Z_COMPRESSION_GZIP = 0x2;
|
||||
cc.Z_COMPRESSION_NONE = 0x3;
|
||||
cc.Z_COMPRESSION_ZLIB = 0x0;
|
||||
cc.BLEND_DST = 0x303;
|
||||
cc.BLEND_SRC = 0x1;
|
||||
cc.DIRECTOR_IOS_USE_BACKGROUND_THREAD = 0x0;
|
||||
cc.DIRECTOR_MAC_THREAD = 0x0;
|
||||
cc.DIRECTOR_STATS_INTERVAL = 0.1;
|
||||
cc.ENABLE_BOX2_D_INTEGRATION = 0x0;
|
||||
cc.ENABLE_DEPRECATED = 0x1;
|
||||
cc.ENABLE_GL_STATE_CACHE = 0x1;
|
||||
cc.ENABLE_PROFILERS = 0x0;
|
||||
cc.ENABLE_STACKABLE_ACTIONS = 0x1;
|
||||
cc.FIX_ARTIFACTS_BY_STRECHING_TEXEL = 0x0;
|
||||
cc.GL_ALL = 0x0;
|
||||
cc.LABELATLAS_DEBUG_DRAW = 0x0;
|
||||
cc.LABELBMFONT_DEBUG_DRAW = 0x0;
|
||||
cc.MAC_USE_DISPLAY_LINK_THREAD = 0x0;
|
||||
cc.MAC_USE_MAIN_THREAD = 0x2;
|
||||
cc.MAC_USE_OWN_THREAD = 0x1;
|
||||
cc.NODE_RENDER_SUBPIXEL = 0x1;
|
||||
cc.PVRMIPMAP_MAX = 0x10;
|
||||
cc.SPRITEBATCHNODE_RENDER_SUBPIXEL = 0x1;
|
||||
cc.SPRITE_DEBUG_DRAW = 0x0;
|
||||
cc.TEXTURE_ATLAS_USE_TRIANGLE_STRIP = 0x0;
|
||||
cc.TEXTURE_ATLAS_USE_VAO = 0x1;
|
||||
cc.USE_L_A88_LABELS = 0x1;
|
||||
cc.ACTION_TAG_INVALID = -1;
|
||||
cc.DEVICE_MAC = 0x6;
|
||||
cc.DEVICE_MAC_RETINA_DISPLAY = 0x7;
|
||||
cc.DEVICEI_PAD = 0x4;
|
||||
cc.DEVICEI_PAD_RETINA_DISPLAY = 0x5;
|
||||
cc.DEVICEI_PHONE = 0x0;
|
||||
cc.DEVICEI_PHONE5 = 0x2;
|
||||
cc.DEVICEI_PHONE5_RETINA_DISPLAY = 0x3;
|
||||
cc.DEVICEI_PHONE_RETINA_DISPLAY = 0x1;
|
||||
cc.DIRECTOR_PROJECTION2_D = 0x0;
|
||||
cc.DIRECTOR_PROJECTION3_D = 0x1;
|
||||
cc.DIRECTOR_PROJECTION_CUSTOM = 0x2;
|
||||
cc.DIRECTOR_PROJECTION_DEFAULT = 0x1;
|
||||
cc.FILE_UTILS_SEARCH_DIRECTORY_MODE = 0x1;
|
||||
cc.FILE_UTILS_SEARCH_SUFFIX_MODE = 0x0;
|
||||
cc.FLIPED_ALL = 0xe0000000;
|
||||
cc.FLIPPED_MASK = 0x1fffffff;
|
||||
cc.IMAGE_FORMAT_JPEG = 0x0;
|
||||
cc.IMAGE_FORMAT_PNG = 0x1;
|
||||
cc.ITEM_SIZE = 0x20;
|
||||
cc.LABEL_AUTOMATIC_WIDTH = -1;
|
||||
cc.LINE_BREAK_MODE_CHARACTER_WRAP = 0x1;
|
||||
cc.LINE_BREAK_MODE_CLIP = 0x2;
|
||||
cc.LINE_BREAK_MODE_HEAD_TRUNCATION = 0x3;
|
||||
cc.LINE_BREAK_MODE_MIDDLE_TRUNCATION = 0x5;
|
||||
cc.LINE_BREAK_MODE_TAIL_TRUNCATION = 0x4;
|
||||
cc.LINE_BREAK_MODE_WORD_WRAP = 0x0;
|
||||
cc.MAC_VERSION_10_6 = 0xa060000;
|
||||
cc.MAC_VERSION_10_7 = 0xa070000;
|
||||
cc.MAC_VERSION_10_8 = 0xa080000;
|
||||
cc.MENU_HANDLER_PRIORITY = -128;
|
||||
cc.MENU_STATE_TRACKING_TOUCH = 0x1;
|
||||
cc.MENU_STATE_WAITING = 0x0;
|
||||
cc.NODE_TAG_INVALID = -1;
|
||||
cc.PARTICLE_DURATION_INFINITY = -1;
|
||||
cc.PARTICLE_MODE_GRAVITY = 0x0;
|
||||
cc.PARTICLE_MODE_RADIUS = 0x1;
|
||||
cc.PARTICLE_START_RADIUS_EQUAL_TO_END_RADIUS = -1;
|
||||
cc.PARTICLE_START_SIZE_EQUAL_TO_END_SIZE = -1;
|
||||
cc.POSITION_TYPE_FREE = 0x0;
|
||||
cc.POSITION_TYPE_GROUPED = 0x2;
|
||||
cc.POSITION_TYPE_RELATIVE = 0x1;
|
||||
cc.PRIORITY_NON_SYSTEM_MIN = -2147483647;
|
||||
cc.PRIORITY_SYSTEM = -2147483648;
|
||||
cc.PROGRESS_TIMER_TYPE_BAR = 0x1;
|
||||
cc.PROGRESS_TIMER_TYPE_RADIAL = 0x0;
|
||||
cc.REPEAT_FOREVER = 0xfffffffe;
|
||||
cc.RESOLUTION_MAC = 0x1;
|
||||
cc.RESOLUTION_MAC_RETINA_DISPLAY = 0x2;
|
||||
cc.RESOLUTION_UNKNOWN = 0x0;
|
||||
cc.TMX_TILE_DIAGONAL_FLAG = 0x20000000;
|
||||
cc.TMX_TILE_HORIZONTAL_FLAG = 0x80000000;
|
||||
cc.TMX_TILE_VERTICAL_FLAG = 0x40000000;
|
||||
cc.TEXT_ALIGNMENT_CENTER = 0x1;
|
||||
cc.TEXT_ALIGNMENT_LEFT = 0x0;
|
||||
cc.TEXT_ALIGNMENT_RIGHT = 0x2;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_A8 = 0x3;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_A_I88 = 0x5;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_DEFAULT = 0x0;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_I8 = 0x4;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_PVRTC2 = 0x9;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_PVRTC4 = 0x8;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_RG_B565 = 0x2;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_RGB5_A1 = 0x7;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_RG_B888 = 0x1;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_RGB_A4444 = 0x6;
|
||||
cc.TEXTURE2_D_PIXEL_FORMAT_RGB_A8888 = 0x0;
|
||||
cc.TOUCHES_ALL_AT_ONCE = 0x0;
|
||||
cc.TOUCHES_ONE_BY_ONE = 0x1;
|
||||
cc.TRANSITION_ORIENTATION_DOWN_OVER = 0x1;
|
||||
cc.TRANSITION_ORIENTATION_LEFT_OVER = 0x0;
|
||||
cc.TRANSITION_ORIENTATION_RIGHT_OVER = 0x1;
|
||||
cc.TRANSITION_ORIENTATION_UP_OVER = 0x0;
|
||||
cc.UNIFORM_COS_TIME = 0x5;
|
||||
cc.UNIFORM_MV_MATRIX = 0x1;
|
||||
cc.UNIFORM_MVP_MATRIX = 0x2;
|
||||
cc.UNIFORM_P_MATRIX = 0x0;
|
||||
cc.UNIFORM_RANDOM01 = 0x6;
|
||||
cc.UNIFORM_SAMPLER = 0x7;
|
||||
cc.UNIFORM_SIN_TIME = 0x4;
|
||||
cc.UNIFORM_TIME = 0x3;
|
||||
cc.UNIFORM_MAX = 0x8;
|
||||
cc.VERTEX_ATTRIB_FLAG_COLOR = 0x2;
|
||||
cc.VERTEX_ATTRIB_FLAG_NONE = 0x0;
|
||||
cc.VERTEX_ATTRIB_FLAG_POS_COLOR_TEX = 0x7;
|
||||
cc.VERTEX_ATTRIB_FLAG_POSITION = 0x1;
|
||||
cc.VERTEX_ATTRIB_FLAG_TEX_COORDS = 0x4;
|
||||
cc.VERTEX_ATTRIB_COLOR = 0x1;
|
||||
cc.VERTEX_ATTRIB_MAX = 0x3;
|
||||
cc.VERTEX_ATTRIB_POSITION = 0x0;
|
||||
cc.VERTEX_ATTRIB_TEX_COORDS = 0x2;
|
||||
cc.VERTICAL_TEXT_ALIGNMENT_BOTTOM = 0x2;
|
||||
cc.VERTICAL_TEXT_ALIGNMENT_CENTER = 0x1;
|
||||
cc.VERTICAL_TEXT_ALIGNMENT_TOP = 0x0;
|
||||
cc.OS_VERSION_4_0 = 0x4000000;
|
||||
cc.OS_VERSION_4_0_1 = 0x4000100;
|
||||
cc.OS_VERSION_4_1 = 0x4010000;
|
||||
cc.OS_VERSION_4_2 = 0x4020000;
|
||||
cc.OS_VERSION_4_2_1 = 0x4020100;
|
||||
cc.OS_VERSION_4_3 = 0x4030000;
|
||||
cc.OS_VERSION_4_3_1 = 0x4030100;
|
||||
cc.OS_VERSION_4_3_2 = 0x4030200;
|
||||
cc.OS_VERSION_4_3_3 = 0x4030300;
|
||||
cc.OS_VERSION_4_3_4 = 0x4030400;
|
||||
cc.OS_VERSION_4_3_5 = 0x4030500;
|
||||
cc.OS_VERSION_5_0 = 0x5000000;
|
||||
cc.OS_VERSION_5_0_1 = 0x5000100;
|
||||
cc.OS_VERSION_5_1_0 = 0x5010000;
|
||||
cc.OS_VERSION_6_0_0 = 0x6000000;
|
||||
cc.ANIMATION_FRAME_DISPLAYED_NOTIFICATION = 'CCAnimationFrameDisplayedNotification';
|
||||
cc.CHIPMUNK_IMPORT = 'chipmunk.h';
|
||||
cc.ATTRIBUTE_NAME_COLOR = 'a_color';
|
||||
cc.ATTRIBUTE_NAME_POSITION = 'a_position';
|
||||
cc.ATTRIBUTE_NAME_TEX_COORD = 'a_texCoord';
|
||||
cc.SHADER_POSITION_COLOR = 'ShaderPositionColor';
|
||||
cc.SHADER_POSITION_LENGTH_TEXURE_COLOR = 'ShaderPositionLengthTextureColor';
|
||||
cc.SHADER_POSITION_TEXTURE = 'ShaderPositionTexture';
|
||||
cc.SHADER_POSITION_TEXTURE_A8_COLOR = 'ShaderPositionTextureA8Color';
|
||||
cc.SHADER_POSITION_TEXTURE_COLOR = 'ShaderPositionTextureColor';
|
||||
cc.SHADER_POSITION_TEXTURE_COLOR_ALPHA_TEST = 'ShaderPositionTextureColorAlphaTest';
|
||||
cc.SHADER_POSITION_TEXTURE_U_COLOR = 'ShaderPositionTexture_uColor';
|
||||
cc.SHADER_POSITION_U_COLOR = 'ShaderPosition_uColor';
|
||||
cc.UNIFORM_ALPHA_TEST_VALUE_S = 'CC_AlphaValue';
|
||||
cc.UNIFORM_COS_TIME_S = 'CC_CosTime';
|
||||
cc.UNIFORM_MV_MATRIX_S = 'CC_MVMatrix';
|
||||
cc.UNIFORM_MVP_MATRIX_S = 'CC_MVPMatrix';
|
||||
cc.UNIFORM_P_MATRIX_S = 'CC_PMatrix';
|
||||
cc.UNIFORM_RANDOM01_S = 'CC_Random01';
|
||||
cc.UNIFORM_SAMPLER_S = 'CC_Texture0';
|
||||
cc.UNIFORM_SIN_TIME_S = 'CC_SinTime';
|
||||
cc.UNIFORM_TIME_S = 'CC_Time';
|
|
@ -1,6 +1,7 @@
|
|||
dbg = {};
|
||||
|
||||
cc = cc || {};
|
||||
// fallback for no cc
|
||||
cc = {};
|
||||
cc.log = log;
|
||||
|
||||
var breakpointHandler = {
|
||||
|
@ -27,7 +28,7 @@ var stepFunction = function (frame, script) {
|
|||
|
||||
dbg.breakLine = 0;
|
||||
|
||||
this.processInput = function (str, frame, script) {
|
||||
var processInput = function (str, frame, script) {
|
||||
str = str.replace(/\n$/, "");
|
||||
if (str.length === 0) {
|
||||
return;
|
||||
|
@ -170,26 +171,20 @@ dbg.onError = function (frame, report) {
|
|||
cc.log("!! exception");
|
||||
};
|
||||
|
||||
this._prepareDebugger = function (global) {
|
||||
function _prepareDebugger(global) {
|
||||
var tmp = new Debugger(global);
|
||||
tmp.onNewScript = dbg.onNewScript;
|
||||
tmp.onDebuggerStatement = dbg.onDebuggerStatement;
|
||||
tmp.onError = dbg.onError;
|
||||
dbg.dbg = tmp;
|
||||
};
|
||||
}
|
||||
|
||||
this._startDebugger = function (global, files, startFunc) {
|
||||
cc.log("[DBG] starting debug session");
|
||||
function _startDebugger(global, files, startFunc) {
|
||||
cc.log("starting with debugger enabled");
|
||||
for (var i in files) {
|
||||
try {
|
||||
global['eval']("require('" + files[i] + "');");
|
||||
} catch (e) {
|
||||
cc.log("[DBG] error evaluating file: " + files[i]);
|
||||
}
|
||||
global['eval']("require('" + files[i] + "');");
|
||||
}
|
||||
cc.log("[DBG] all files required");
|
||||
if (startFunc) {
|
||||
cc.log("executing start func: " + startFunc);
|
||||
global['eval'](startFunc);
|
||||
}
|
||||
// beginDebug();
|
||||
|
|
|
@ -0,0 +1,828 @@
|
|||
/*
|
||||
* AUTOGENERATED FILE. DO NOT EDIT IT
|
||||
* Generated by "generate_jsb.py -c opengl_jsb.ini" on 2013-03-05
|
||||
* Script version: v0.6
|
||||
*/
|
||||
|
||||
var gl = gl || {};
|
||||
gl.GCCSO_SHADER_BINARY_FJ = 0x9260;
|
||||
gl._3DC_XY_AMD = 0x87fa;
|
||||
gl._3DC_X_AMD = 0x87f9;
|
||||
gl.ACTIVE_ATTRIBUTES = 0x8b89;
|
||||
gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a;
|
||||
gl.ACTIVE_PROGRAM_EXT = 0x8259;
|
||||
gl.ACTIVE_TEXTURE = 0x84e0;
|
||||
gl.ACTIVE_UNIFORMS = 0x8b86;
|
||||
gl.ACTIVE_UNIFORM_MAX_LENGTH = 0x8b87;
|
||||
gl.ALIASED_LINE_WIDTH_RANGE = 0x846e;
|
||||
gl.ALIASED_POINT_SIZE_RANGE = 0x846d;
|
||||
gl.ALL_COMPLETED_NV = 0x84f2;
|
||||
gl.ALL_SHADER_BITS_EXT = 0xffffffff;
|
||||
gl.ALPHA = 0x1906;
|
||||
gl.ALPHA16F_EXT = 0x881c;
|
||||
gl.ALPHA32F_EXT = 0x8816;
|
||||
gl.ALPHA8_EXT = 0x803c;
|
||||
gl.ALPHA8_OES = 0x803c;
|
||||
gl.ALPHA_BITS = 0xd55;
|
||||
gl.ALPHA_TEST_FUNC_QCOM = 0xbc1;
|
||||
gl.ALPHA_TEST_QCOM = 0xbc0;
|
||||
gl.ALPHA_TEST_REF_QCOM = 0xbc2;
|
||||
gl.ALREADY_SIGNALED_APPLE = 0x911a;
|
||||
gl.ALWAYS = 0x207;
|
||||
gl.AMD_compressed_3DC_texture = 0x1;
|
||||
gl.AMD_compressed_ATC_texture = 0x1;
|
||||
gl.AMD_performance_monitor = 0x1;
|
||||
gl.AMD_program_binary_Z400 = 0x1;
|
||||
gl.ANGLE_depth_texture = 0x1;
|
||||
gl.ANGLE_framebuffer_blit = 0x1;
|
||||
gl.ANGLE_framebuffer_multisample = 0x1;
|
||||
gl.ANGLE_instanced_arrays = 0x1;
|
||||
gl.ANGLE_pack_reverse_row_order = 0x1;
|
||||
gl.ANGLE_program_binary = 0x1;
|
||||
gl.ANGLE_texture_compression_dxt3 = 0x1;
|
||||
gl.ANGLE_texture_compression_dxt5 = 0x1;
|
||||
gl.ANGLE_texture_usage = 0x1;
|
||||
gl.ANGLE_translated_shader_source = 0x1;
|
||||
gl.ANY_SAMPLES_PASSED_CONSERVATIVE_EXT = 0x8d6a;
|
||||
gl.ANY_SAMPLES_PASSED_EXT = 0x8c2f;
|
||||
gl.APPLE_copy_texture_levels = 0x1;
|
||||
gl.APPLE_framebuffer_multisample = 0x1;
|
||||
gl.APPLE_rgb_422 = 0x1;
|
||||
gl.APPLE_sync = 0x1;
|
||||
gl.APPLE_texture_format_BGRA8888 = 0x1;
|
||||
gl.APPLE_texture_max_level = 0x1;
|
||||
gl.ARM_mali_program_binary = 0x1;
|
||||
gl.ARM_mali_shader_binary = 0x1;
|
||||
gl.ARM_rgba8 = 0x1;
|
||||
gl.ARRAY_BUFFER = 0x8892;
|
||||
gl.ARRAY_BUFFER_BINDING = 0x8894;
|
||||
gl.ATC_RGBA_EXPLICIT_ALPHA_AMD = 0x8c93;
|
||||
gl.ATC_RGBA_INTERPOLATED_ALPHA_AMD = 0x87ee;
|
||||
gl.ATC_RGB_AMD = 0x8c92;
|
||||
gl.ATTACHED_SHADERS = 0x8b85;
|
||||
gl.BACK = 0x405;
|
||||
gl.BGRA8_EXT = 0x93a1;
|
||||
gl.BGRA_EXT = 0x80e1;
|
||||
gl.BGRA_IMG = 0x80e1;
|
||||
gl.BINNING_CONTROL_HINT_QCOM = 0x8fb0;
|
||||
gl.BLEND = 0xbe2;
|
||||
gl.BLEND_COLOR = 0x8005;
|
||||
gl.BLEND_DST_ALPHA = 0x80ca;
|
||||
gl.BLEND_DST_RGB = 0x80c8;
|
||||
gl.BLEND_EQUATION = 0x8009;
|
||||
gl.BLEND_EQUATION_ALPHA = 0x883d;
|
||||
gl.BLEND_EQUATION_RGB = 0x8009;
|
||||
gl.BLEND_SRC_ALPHA = 0x80cb;
|
||||
gl.BLEND_SRC_RGB = 0x80c9;
|
||||
gl.BLUE_BITS = 0xd54;
|
||||
gl.BOOL = 0x8b56;
|
||||
gl.BOOL_VEC2 = 0x8b57;
|
||||
gl.BOOL_VEC3 = 0x8b58;
|
||||
gl.BOOL_VEC4 = 0x8b59;
|
||||
gl.BUFFER = 0x82e0;
|
||||
gl.BUFFER_ACCESS_OES = 0x88bb;
|
||||
gl.BUFFER_MAPPED_OES = 0x88bc;
|
||||
gl.BUFFER_MAP_POINTER_OES = 0x88bd;
|
||||
gl.BUFFER_OBJECT_EXT = 0x9151;
|
||||
gl.BUFFER_SIZE = 0x8764;
|
||||
gl.BUFFER_USAGE = 0x8765;
|
||||
gl.BYTE = 0x1400;
|
||||
gl.CCW = 0x901;
|
||||
gl.CLAMP_TO_BORDER_NV = 0x812d;
|
||||
gl.CLAMP_TO_EDGE = 0x812f;
|
||||
gl.COLOR_ATTACHMENT0 = 0x8ce0;
|
||||
gl.COLOR_ATTACHMENT0_NV = 0x8ce0;
|
||||
gl.COLOR_ATTACHMENT10_NV = 0x8cea;
|
||||
gl.COLOR_ATTACHMENT11_NV = 0x8ceb;
|
||||
gl.COLOR_ATTACHMENT12_NV = 0x8cec;
|
||||
gl.COLOR_ATTACHMENT13_NV = 0x8ced;
|
||||
gl.COLOR_ATTACHMENT14_NV = 0x8cee;
|
||||
gl.COLOR_ATTACHMENT15_NV = 0x8cef;
|
||||
gl.COLOR_ATTACHMENT1_NV = 0x8ce1;
|
||||
gl.COLOR_ATTACHMENT2_NV = 0x8ce2;
|
||||
gl.COLOR_ATTACHMENT3_NV = 0x8ce3;
|
||||
gl.COLOR_ATTACHMENT4_NV = 0x8ce4;
|
||||
gl.COLOR_ATTACHMENT5_NV = 0x8ce5;
|
||||
gl.COLOR_ATTACHMENT6_NV = 0x8ce6;
|
||||
gl.COLOR_ATTACHMENT7_NV = 0x8ce7;
|
||||
gl.COLOR_ATTACHMENT8_NV = 0x8ce8;
|
||||
gl.COLOR_ATTACHMENT9_NV = 0x8ce9;
|
||||
gl.COLOR_ATTACHMENT_EXT = 0x90f0;
|
||||
gl.COLOR_BUFFER_BIT = 0x4000;
|
||||
gl.COLOR_BUFFER_BIT0_QCOM = 0x1;
|
||||
gl.COLOR_BUFFER_BIT1_QCOM = 0x2;
|
||||
gl.COLOR_BUFFER_BIT2_QCOM = 0x4;
|
||||
gl.COLOR_BUFFER_BIT3_QCOM = 0x8;
|
||||
gl.COLOR_BUFFER_BIT4_QCOM = 0x10;
|
||||
gl.COLOR_BUFFER_BIT5_QCOM = 0x20;
|
||||
gl.COLOR_BUFFER_BIT6_QCOM = 0x40;
|
||||
gl.COLOR_BUFFER_BIT7_QCOM = 0x80;
|
||||
gl.COLOR_CLEAR_VALUE = 0xc22;
|
||||
gl.COLOR_EXT = 0x1800;
|
||||
gl.COLOR_WRITEMASK = 0xc23;
|
||||
gl.COMPARE_REF_TO_TEXTURE_EXT = 0x884e;
|
||||
gl.COMPILE_STATUS = 0x8b81;
|
||||
gl.COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93bb;
|
||||
gl.COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93b8;
|
||||
gl.COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93b9;
|
||||
gl.COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93ba;
|
||||
gl.COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93bc;
|
||||
gl.COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93bd;
|
||||
gl.COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93b0;
|
||||
gl.COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93b1;
|
||||
gl.COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93b2;
|
||||
gl.COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93b3;
|
||||
gl.COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93b4;
|
||||
gl.COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93b5;
|
||||
gl.COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93b6;
|
||||
gl.COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93b7;
|
||||
gl.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8c03;
|
||||
gl.COMPRESSED_RGBA_PVRTC_2BPPV2_IMG = 0x9137;
|
||||
gl.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8c02;
|
||||
gl.COMPRESSED_RGBA_PVRTC_4BPPV2_IMG = 0x9138;
|
||||
gl.COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83f1;
|
||||
gl.COMPRESSED_RGBA_S3TC_DXT3_ANGLE = 0x83f2;
|
||||
gl.COMPRESSED_RGBA_S3TC_DXT5_ANGLE = 0x83f3;
|
||||
gl.COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8c01;
|
||||
gl.COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8c00;
|
||||
gl.COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83f0;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93db;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93d8;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93d9;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93da;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93dc;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93dd;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93d0;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93d1;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93d2;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93d3;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93d4;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93d5;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93d6;
|
||||
gl.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93d7;
|
||||
gl.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV = 0x8c4d;
|
||||
gl.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV = 0x8c4e;
|
||||
gl.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV = 0x8c4f;
|
||||
gl.COMPRESSED_SRGB_S3TC_DXT1_NV = 0x8c4c;
|
||||
gl.COMPRESSED_TEXTURE_FORMATS = 0x86a3;
|
||||
gl.CONDITION_SATISFIED_APPLE = 0x911c;
|
||||
gl.CONSTANT_ALPHA = 0x8003;
|
||||
gl.CONSTANT_COLOR = 0x8001;
|
||||
gl.CONTEXT_FLAG_DEBUG_BIT = 0x2;
|
||||
gl.CONTEXT_ROBUST_ACCESS_EXT = 0x90f3;
|
||||
gl.COUNTER_RANGE_AMD = 0x8bc1;
|
||||
gl.COUNTER_TYPE_AMD = 0x8bc0;
|
||||
gl.COVERAGE_ALL_FRAGMENTS_NV = 0x8ed5;
|
||||
gl.COVERAGE_ATTACHMENT_NV = 0x8ed2;
|
||||
gl.COVERAGE_AUTOMATIC_NV = 0x8ed7;
|
||||
gl.COVERAGE_BUFFERS_NV = 0x8ed3;
|
||||
gl.COVERAGE_BUFFER_BIT_NV = 0x8000;
|
||||
gl.COVERAGE_COMPONENT4_NV = 0x8ed1;
|
||||
gl.COVERAGE_COMPONENT_NV = 0x8ed0;
|
||||
gl.COVERAGE_EDGE_FRAGMENTS_NV = 0x8ed6;
|
||||
gl.COVERAGE_SAMPLES_NV = 0x8ed4;
|
||||
gl.CPU_OPTIMIZED_QCOM = 0x8fb1;
|
||||
gl.CULL_FACE = 0xb44;
|
||||
gl.CULL_FACE_MODE = 0xb45;
|
||||
gl.CURRENT_PROGRAM = 0x8b8d;
|
||||
gl.CURRENT_QUERY_EXT = 0x8865;
|
||||
gl.CURRENT_VERTEX_ATTRIB = 0x8626;
|
||||
gl.CW = 0x900;
|
||||
gl.DEBUG_CALLBACK_FUNCTION = 0x8244;
|
||||
gl.DEBUG_CALLBACK_USER_PARAM = 0x8245;
|
||||
gl.DEBUG_GROUP_STACK_DEPTH = 0x826d;
|
||||
gl.DEBUG_LOGGED_MESSAGES = 0x9145;
|
||||
gl.DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243;
|
||||
gl.DEBUG_OUTPUT = 0x92e0;
|
||||
gl.DEBUG_OUTPUT_SYNCHRONOUS = 0x8242;
|
||||
gl.DEBUG_SEVERITY_HIGH = 0x9146;
|
||||
gl.DEBUG_SEVERITY_LOW = 0x9148;
|
||||
gl.DEBUG_SEVERITY_MEDIUM = 0x9147;
|
||||
gl.DEBUG_SEVERITY_NOTIFICATION = 0x826b;
|
||||
gl.DEBUG_SOURCE_API = 0x8246;
|
||||
gl.DEBUG_SOURCE_APPLICATION = 0x824a;
|
||||
gl.DEBUG_SOURCE_OTHER = 0x824b;
|
||||
gl.DEBUG_SOURCE_SHADER_COMPILER = 0x8248;
|
||||
gl.DEBUG_SOURCE_THIRD_PARTY = 0x8249;
|
||||
gl.DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247;
|
||||
gl.DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824d;
|
||||
gl.DEBUG_TYPE_ERROR = 0x824c;
|
||||
gl.DEBUG_TYPE_MARKER = 0x8268;
|
||||
gl.DEBUG_TYPE_OTHER = 0x8251;
|
||||
gl.DEBUG_TYPE_PERFORMANCE = 0x8250;
|
||||
gl.DEBUG_TYPE_POP_GROUP = 0x826a;
|
||||
gl.DEBUG_TYPE_PORTABILITY = 0x824f;
|
||||
gl.DEBUG_TYPE_PUSH_GROUP = 0x8269;
|
||||
gl.DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824e;
|
||||
gl.DECR = 0x1e03;
|
||||
gl.DECR_WRAP = 0x8508;
|
||||
gl.DELETE_STATUS = 0x8b80;
|
||||
gl.DEPTH24_STENCIL8_OES = 0x88f0;
|
||||
gl.DEPTH_ATTACHMENT = 0x8d00;
|
||||
gl.DEPTH_BITS = 0xd56;
|
||||
gl.DEPTH_BUFFER_BIT = 0x100;
|
||||
gl.DEPTH_BUFFER_BIT0_QCOM = 0x100;
|
||||
gl.DEPTH_BUFFER_BIT1_QCOM = 0x200;
|
||||
gl.DEPTH_BUFFER_BIT2_QCOM = 0x400;
|
||||
gl.DEPTH_BUFFER_BIT3_QCOM = 0x800;
|
||||
gl.DEPTH_BUFFER_BIT4_QCOM = 0x1000;
|
||||
gl.DEPTH_BUFFER_BIT5_QCOM = 0x2000;
|
||||
gl.DEPTH_BUFFER_BIT6_QCOM = 0x4000;
|
||||
gl.DEPTH_BUFFER_BIT7_QCOM = 0x8000;
|
||||
gl.DEPTH_CLEAR_VALUE = 0xb73;
|
||||
gl.DEPTH_COMPONENT = 0x1902;
|
||||
gl.DEPTH_COMPONENT16 = 0x81a5;
|
||||
gl.DEPTH_COMPONENT16_NONLINEAR_NV = 0x8e2c;
|
||||
gl.DEPTH_COMPONENT16_OES = 0x81a5;
|
||||
gl.DEPTH_COMPONENT24_OES = 0x81a6;
|
||||
gl.DEPTH_COMPONENT32_OES = 0x81a7;
|
||||
gl.DEPTH_EXT = 0x1801;
|
||||
gl.DEPTH_FUNC = 0xb74;
|
||||
gl.DEPTH_RANGE = 0xb70;
|
||||
gl.DEPTH_STENCIL_OES = 0x84f9;
|
||||
gl.DEPTH_TEST = 0xb71;
|
||||
gl.DEPTH_WRITEMASK = 0xb72;
|
||||
gl.DITHER = 0xbd0;
|
||||
gl.DMP_shader_binary = 0x1;
|
||||
gl.DONT_CARE = 0x1100;
|
||||
gl.DRAW_BUFFER0_NV = 0x8825;
|
||||
gl.DRAW_BUFFER10_NV = 0x882f;
|
||||
gl.DRAW_BUFFER11_NV = 0x8830;
|
||||
gl.DRAW_BUFFER12_NV = 0x8831;
|
||||
gl.DRAW_BUFFER13_NV = 0x8832;
|
||||
gl.DRAW_BUFFER14_NV = 0x8833;
|
||||
gl.DRAW_BUFFER15_NV = 0x8834;
|
||||
gl.DRAW_BUFFER1_NV = 0x8826;
|
||||
gl.DRAW_BUFFER2_NV = 0x8827;
|
||||
gl.DRAW_BUFFER3_NV = 0x8828;
|
||||
gl.DRAW_BUFFER4_NV = 0x8829;
|
||||
gl.DRAW_BUFFER5_NV = 0x882a;
|
||||
gl.DRAW_BUFFER6_NV = 0x882b;
|
||||
gl.DRAW_BUFFER7_NV = 0x882c;
|
||||
gl.DRAW_BUFFER8_NV = 0x882d;
|
||||
gl.DRAW_BUFFER9_NV = 0x882e;
|
||||
gl.DRAW_BUFFER_EXT = 0xc01;
|
||||
gl.DRAW_FRAMEBUFFER_ANGLE = 0x8ca9;
|
||||
gl.DRAW_FRAMEBUFFER_APPLE = 0x8ca9;
|
||||
gl.DRAW_FRAMEBUFFER_BINDING_ANGLE = 0x8ca6;
|
||||
gl.DRAW_FRAMEBUFFER_BINDING_APPLE = 0x8ca6;
|
||||
gl.DRAW_FRAMEBUFFER_BINDING_NV = 0x8ca6;
|
||||
gl.DRAW_FRAMEBUFFER_NV = 0x8ca9;
|
||||
gl.DST_ALPHA = 0x304;
|
||||
gl.DST_COLOR = 0x306;
|
||||
gl.DYNAMIC_DRAW = 0x88e8;
|
||||
gl.ELEMENT_ARRAY_BUFFER = 0x8893;
|
||||
gl.ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
|
||||
gl.EQUAL = 0x202;
|
||||
gl.ES_VERSION_2_0 = 0x1;
|
||||
gl.ETC1_RGB8_OES = 0x8d64;
|
||||
gl.ETC1_SRGB8_NV = 0x88ee;
|
||||
gl.EXTENSIONS = 0x1f03;
|
||||
gl.EXT_blend_minmax = 0x1;
|
||||
gl.EXT_color_buffer_half_float = 0x1;
|
||||
gl.EXT_debug_label = 0x1;
|
||||
gl.EXT_debug_marker = 0x1;
|
||||
gl.EXT_discard_framebuffer = 0x1;
|
||||
gl.EXT_map_buffer_range = 0x1;
|
||||
gl.EXT_multi_draw_arrays = 0x1;
|
||||
gl.EXT_multisampled_render_to_texture = 0x1;
|
||||
gl.EXT_multiview_draw_buffers = 0x1;
|
||||
gl.EXT_occlusion_query_boolean = 0x1;
|
||||
gl.EXT_read_format_bgra = 0x1;
|
||||
gl.EXT_robustness = 0x1;
|
||||
gl.EXT_sRGB = 0x1;
|
||||
gl.EXT_separate_shader_objects = 0x1;
|
||||
gl.EXT_shader_framebuffer_fetch = 0x1;
|
||||
gl.EXT_shader_texture_lod = 0x1;
|
||||
gl.EXT_shadow_samplers = 0x1;
|
||||
gl.EXT_texture_compression_dxt1 = 0x1;
|
||||
gl.EXT_texture_filter_anisotropic = 0x1;
|
||||
gl.EXT_texture_format_BGRA8888 = 0x1;
|
||||
gl.EXT_texture_rg = 0x1;
|
||||
gl.EXT_texture_storage = 0x1;
|
||||
gl.EXT_texture_type_2_10_10_10_REV = 0x1;
|
||||
gl.EXT_unpack_subimage = 0x1;
|
||||
gl.FALSE = 0x0;
|
||||
gl.FASTEST = 0x1101;
|
||||
gl.FENCE_CONDITION_NV = 0x84f4;
|
||||
gl.FENCE_STATUS_NV = 0x84f3;
|
||||
gl.FIXED = 0x140c;
|
||||
gl.FJ_shader_binary_GCCSO = 0x1;
|
||||
gl.FLOAT = 0x1406;
|
||||
gl.FLOAT_MAT2 = 0x8b5a;
|
||||
gl.FLOAT_MAT3 = 0x8b5b;
|
||||
gl.FLOAT_MAT4 = 0x8b5c;
|
||||
gl.FLOAT_VEC2 = 0x8b50;
|
||||
gl.FLOAT_VEC3 = 0x8b51;
|
||||
gl.FLOAT_VEC4 = 0x8b52;
|
||||
gl.FRAGMENT_SHADER = 0x8b30;
|
||||
gl.FRAGMENT_SHADER_BIT_EXT = 0x2;
|
||||
gl.FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8b8b;
|
||||
gl.FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT = 0x8a52;
|
||||
gl.FRAMEBUFFER = 0x8d40;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_ANGLE = 0x93a3;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 0x8210;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8cd1;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8cd0;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES = 0x8cd4;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8cd3;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8cd2;
|
||||
gl.FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT = 0x8d6c;
|
||||
gl.FRAMEBUFFER_BINDING = 0x8ca6;
|
||||
gl.FRAMEBUFFER_COMPLETE = 0x8cd5;
|
||||
gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8cd6;
|
||||
gl.FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8cd9;
|
||||
gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8cd7;
|
||||
gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE = 0x8d56;
|
||||
gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE = 0x8d56;
|
||||
gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8d56;
|
||||
gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG = 0x9134;
|
||||
gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV = 0x8d56;
|
||||
gl.FRAMEBUFFER_UNDEFINED_OES = 0x8219;
|
||||
gl.FRAMEBUFFER_UNSUPPORTED = 0x8cdd;
|
||||
gl.FRONT = 0x404;
|
||||
gl.FRONT_AND_BACK = 0x408;
|
||||
gl.FRONT_FACE = 0xb46;
|
||||
gl.FUNC_ADD = 0x8006;
|
||||
gl.FUNC_REVERSE_SUBTRACT = 0x800b;
|
||||
gl.FUNC_SUBTRACT = 0x800a;
|
||||
gl.GENERATE_MIPMAP_HINT = 0x8192;
|
||||
gl.GEQUAL = 0x206;
|
||||
gl.GPU_OPTIMIZED_QCOM = 0x8fb2;
|
||||
gl.GREATER = 0x204;
|
||||
gl.GREEN_BITS = 0xd53;
|
||||
gl.GUILTY_CONTEXT_RESET_EXT = 0x8253;
|
||||
gl.HALF_FLOAT_OES = 0x8d61;
|
||||
gl.HIGH_FLOAT = 0x8df2;
|
||||
gl.HIGH_INT = 0x8df5;
|
||||
gl.IMG_multisampled_render_to_texture = 0x1;
|
||||
gl.IMG_program_binary = 0x1;
|
||||
gl.IMG_read_format = 0x1;
|
||||
gl.IMG_shader_binary = 0x1;
|
||||
gl.IMG_texture_compression_pvrtc = 0x1;
|
||||
gl.IMG_texture_compression_pvrtc2 = 0x1;
|
||||
gl.IMPLEMENTATION_COLOR_READ_FORMAT = 0x8b9b;
|
||||
gl.IMPLEMENTATION_COLOR_READ_TYPE = 0x8b9a;
|
||||
gl.INCR = 0x1e02;
|
||||
gl.INCR_WRAP = 0x8507;
|
||||
gl.INFO_LOG_LENGTH = 0x8b84;
|
||||
gl.INNOCENT_CONTEXT_RESET_EXT = 0x8254;
|
||||
gl.INT = 0x1404;
|
||||
gl.INT_10_10_10_2_OES = 0x8df7;
|
||||
gl.INT_VEC2 = 0x8b53;
|
||||
gl.INT_VEC3 = 0x8b54;
|
||||
gl.INT_VEC4 = 0x8b55;
|
||||
gl.INVALID_ENUM = 0x500;
|
||||
gl.INVALID_FRAMEBUFFER_OPERATION = 0x506;
|
||||
gl.INVALID_OPERATION = 0x502;
|
||||
gl.INVALID_VALUE = 0x501;
|
||||
gl.INVERT = 0x150a;
|
||||
gl.KEEP = 0x1e00;
|
||||
gl.KHR_debug = 0x1;
|
||||
gl.KHR_texture_compression_astc_ldr = 0x1;
|
||||
gl.LEQUAL = 0x203;
|
||||
gl.LESS = 0x201;
|
||||
gl.LINEAR = 0x2601;
|
||||
gl.LINEAR_MIPMAP_LINEAR = 0x2703;
|
||||
gl.LINEAR_MIPMAP_NEAREST = 0x2701;
|
||||
gl.LINES = 0x1;
|
||||
gl.LINE_LOOP = 0x2;
|
||||
gl.LINE_STRIP = 0x3;
|
||||
gl.LINE_WIDTH = 0xb21;
|
||||
gl.LINK_STATUS = 0x8b82;
|
||||
gl.LOSE_CONTEXT_ON_RESET_EXT = 0x8252;
|
||||
gl.LOW_FLOAT = 0x8df0;
|
||||
gl.LOW_INT = 0x8df3;
|
||||
gl.LUMINANCE = 0x1909;
|
||||
gl.LUMINANCE16F_EXT = 0x881e;
|
||||
gl.LUMINANCE32F_EXT = 0x8818;
|
||||
gl.LUMINANCE4_ALPHA4_OES = 0x8043;
|
||||
gl.LUMINANCE8_ALPHA8_EXT = 0x8045;
|
||||
gl.LUMINANCE8_ALPHA8_OES = 0x8045;
|
||||
gl.LUMINANCE8_EXT = 0x8040;
|
||||
gl.LUMINANCE8_OES = 0x8040;
|
||||
gl.LUMINANCE_ALPHA = 0x190a;
|
||||
gl.LUMINANCE_ALPHA16F_EXT = 0x881f;
|
||||
gl.LUMINANCE_ALPHA32F_EXT = 0x8819;
|
||||
gl.MALI_PROGRAM_BINARY_ARM = 0x8f61;
|
||||
gl.MALI_SHADER_BINARY_ARM = 0x8f60;
|
||||
gl.MAP_FLUSH_EXPLICIT_BIT_EXT = 0x10;
|
||||
gl.MAP_INVALIDATE_BUFFER_BIT_EXT = 0x8;
|
||||
gl.MAP_INVALIDATE_RANGE_BIT_EXT = 0x4;
|
||||
gl.MAP_READ_BIT_EXT = 0x1;
|
||||
gl.MAP_UNSYNCHRONIZED_BIT_EXT = 0x20;
|
||||
gl.MAP_WRITE_BIT_EXT = 0x2;
|
||||
gl.MAX_3D_TEXTURE_SIZE_OES = 0x8073;
|
||||
gl.MAX_COLOR_ATTACHMENTS_NV = 0x8cdf;
|
||||
gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8b4d;
|
||||
gl.MAX_CUBE_MAP_TEXTURE_SIZE = 0x851c;
|
||||
gl.MAX_DEBUG_GROUP_STACK_DEPTH = 0x826c;
|
||||
gl.MAX_DEBUG_LOGGED_MESSAGES = 0x9144;
|
||||
gl.MAX_DEBUG_MESSAGE_LENGTH = 0x9143;
|
||||
gl.MAX_DRAW_BUFFERS_NV = 0x8824;
|
||||
gl.MAX_EXT = 0x8008;
|
||||
gl.MAX_FRAGMENT_UNIFORM_VECTORS = 0x8dfd;
|
||||
gl.MAX_LABEL_LENGTH = 0x82e8;
|
||||
gl.MAX_MULTIVIEW_BUFFERS_EXT = 0x90f2;
|
||||
gl.MAX_RENDERBUFFER_SIZE = 0x84e8;
|
||||
gl.MAX_SAMPLES_ANGLE = 0x8d57;
|
||||
gl.MAX_SAMPLES_APPLE = 0x8d57;
|
||||
gl.MAX_SAMPLES_EXT = 0x8d57;
|
||||
gl.MAX_SAMPLES_IMG = 0x9135;
|
||||
gl.MAX_SAMPLES_NV = 0x8d57;
|
||||
gl.MAX_SERVER_WAIT_TIMEOUT_APPLE = 0x9111;
|
||||
gl.MAX_TEXTURE_IMAGE_UNITS = 0x8872;
|
||||
gl.MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84ff;
|
||||
gl.MAX_TEXTURE_SIZE = 0xd33;
|
||||
gl.MAX_VARYING_VECTORS = 0x8dfc;
|
||||
gl.MAX_VERTEX_ATTRIBS = 0x8869;
|
||||
gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8b4c;
|
||||
gl.MAX_VERTEX_UNIFORM_VECTORS = 0x8dfb;
|
||||
gl.MAX_VIEWPORT_DIMS = 0xd3a;
|
||||
gl.MEDIUM_FLOAT = 0x8df1;
|
||||
gl.MEDIUM_INT = 0x8df4;
|
||||
gl.MIN_EXT = 0x8007;
|
||||
gl.MIRRORED_REPEAT = 0x8370;
|
||||
gl.MULTISAMPLE_BUFFER_BIT0_QCOM = 0x1000000;
|
||||
gl.MULTISAMPLE_BUFFER_BIT1_QCOM = 0x2000000;
|
||||
gl.MULTISAMPLE_BUFFER_BIT2_QCOM = 0x4000000;
|
||||
gl.MULTISAMPLE_BUFFER_BIT3_QCOM = 0x8000000;
|
||||
gl.MULTISAMPLE_BUFFER_BIT4_QCOM = 0x10000000;
|
||||
gl.MULTISAMPLE_BUFFER_BIT5_QCOM = 0x20000000;
|
||||
gl.MULTISAMPLE_BUFFER_BIT6_QCOM = 0x40000000;
|
||||
gl.MULTISAMPLE_BUFFER_BIT7_QCOM = 0x80000000;
|
||||
gl.MULTIVIEW_EXT = 0x90f1;
|
||||
gl.NEAREST = 0x2600;
|
||||
gl.NEAREST_MIPMAP_LINEAR = 0x2702;
|
||||
gl.NEAREST_MIPMAP_NEAREST = 0x2700;
|
||||
gl.NEVER = 0x200;
|
||||
gl.NICEST = 0x1102;
|
||||
gl.NONE = 0x0;
|
||||
gl.NOTEQUAL = 0x205;
|
||||
gl.NO_ERROR = 0x0;
|
||||
gl.NO_RESET_NOTIFICATION_EXT = 0x8261;
|
||||
gl.NUM_COMPRESSED_TEXTURE_FORMATS = 0x86a2;
|
||||
gl.NUM_PROGRAM_BINARY_FORMATS_OES = 0x87fe;
|
||||
gl.NUM_SHADER_BINARY_FORMATS = 0x8df9;
|
||||
gl.NV_coverage_sample = 0x1;
|
||||
gl.NV_depth_nonlinear = 0x1;
|
||||
gl.NV_draw_buffers = 0x1;
|
||||
gl.NV_draw_instanced = 0x1;
|
||||
gl.NV_fbo_color_attachments = 0x1;
|
||||
gl.NV_fence = 0x1;
|
||||
gl.NV_framebuffer_blit = 0x1;
|
||||
gl.NV_framebuffer_multisample = 0x1;
|
||||
gl.NV_generate_mipmap_sRGB = 0x1;
|
||||
gl.NV_instanced_arrays = 0x1;
|
||||
gl.NV_read_buffer = 0x1;
|
||||
gl.NV_read_buffer_front = 0x1;
|
||||
gl.NV_read_depth = 0x1;
|
||||
gl.NV_read_depth_stencil = 0x1;
|
||||
gl.NV_read_stencil = 0x1;
|
||||
gl.NV_sRGB_formats = 0x1;
|
||||
gl.NV_shadow_samplers_array = 0x1;
|
||||
gl.NV_shadow_samplers_cube = 0x1;
|
||||
gl.NV_texture_border_clamp = 0x1;
|
||||
gl.NV_texture_compression_s3tc_update = 0x1;
|
||||
gl.NV_texture_npot_2D_mipmap = 0x1;
|
||||
gl.OBJECT_TYPE_APPLE = 0x9112;
|
||||
gl.OES_EGL_image = 0x1;
|
||||
gl.OES_EGL_image_external = 0x1;
|
||||
gl.OES_compressed_ETC1_RGB8_texture = 0x1;
|
||||
gl.OES_compressed_paletted_texture = 0x1;
|
||||
gl.OES_depth24 = 0x1;
|
||||
gl.OES_depth32 = 0x1;
|
||||
gl.OES_depth_texture = 0x1;
|
||||
gl.OES_element_index_uint = 0x1;
|
||||
gl.OES_fbo_render_mipmap = 0x1;
|
||||
gl.OES_fragment_precision_high = 0x1;
|
||||
gl.OES_get_program_binary = 0x1;
|
||||
gl.OES_mapbuffer = 0x1;
|
||||
gl.OES_packed_depth_stencil = 0x1;
|
||||
gl.OES_required_internalformat = 0x1;
|
||||
gl.OES_rgb8_rgba8 = 0x1;
|
||||
gl.OES_standard_derivatives = 0x1;
|
||||
gl.OES_stencil1 = 0x1;
|
||||
gl.OES_stencil4 = 0x1;
|
||||
gl.OES_surfaceless_context = 0x1;
|
||||
gl.OES_texture_3D = 0x1;
|
||||
gl.OES_texture_float = 0x1;
|
||||
gl.OES_texture_float_linear = 0x1;
|
||||
gl.OES_texture_half_float = 0x1;
|
||||
gl.OES_texture_half_float_linear = 0x1;
|
||||
gl.OES_texture_npot = 0x1;
|
||||
gl.OES_vertex_array_object = 0x1;
|
||||
gl.OES_vertex_half_float = 0x1;
|
||||
gl.OES_vertex_type_10_10_10_2 = 0x1;
|
||||
gl.ONE = 0x1;
|
||||
gl.ONE_MINUS_CONSTANT_ALPHA = 0x8004;
|
||||
gl.ONE_MINUS_CONSTANT_COLOR = 0x8002;
|
||||
gl.ONE_MINUS_DST_ALPHA = 0x305;
|
||||
gl.ONE_MINUS_DST_COLOR = 0x307;
|
||||
gl.ONE_MINUS_SRC_ALPHA = 0x303;
|
||||
gl.ONE_MINUS_SRC_COLOR = 0x301;
|
||||
gl.OUT_OF_MEMORY = 0x505;
|
||||
gl.PACK_ALIGNMENT = 0xd05;
|
||||
gl.PACK_REVERSE_ROW_ORDER_ANGLE = 0x93a4;
|
||||
gl.PALETTE4_R5_G6_B5_OES = 0x8b92;
|
||||
gl.PALETTE4_RGB5_A1_OES = 0x8b94;
|
||||
gl.PALETTE4_RGB8_OES = 0x8b90;
|
||||
gl.PALETTE4_RGBA4_OES = 0x8b93;
|
||||
gl.PALETTE4_RGBA8_OES = 0x8b91;
|
||||
gl.PALETTE8_R5_G6_B5_OES = 0x8b97;
|
||||
gl.PALETTE8_RGB5_A1_OES = 0x8b99;
|
||||
gl.PALETTE8_RGB8_OES = 0x8b95;
|
||||
gl.PALETTE8_RGBA4_OES = 0x8b98;
|
||||
gl.PALETTE8_RGBA8_OES = 0x8b96;
|
||||
gl.PERCENTAGE_AMD = 0x8bc3;
|
||||
gl.PERFMON_GLOBAL_MODE_QCOM = 0x8fa0;
|
||||
gl.PERFMON_RESULT_AMD = 0x8bc6;
|
||||
gl.PERFMON_RESULT_AVAILABLE_AMD = 0x8bc4;
|
||||
gl.PERFMON_RESULT_SIZE_AMD = 0x8bc5;
|
||||
gl.POINTS = 0x0;
|
||||
gl.POLYGON_OFFSET_FACTOR = 0x8038;
|
||||
gl.POLYGON_OFFSET_FILL = 0x8037;
|
||||
gl.POLYGON_OFFSET_UNITS = 0x2a00;
|
||||
gl.PROGRAM = 0x82e2;
|
||||
gl.PROGRAM_BINARY_ANGLE = 0x93a6;
|
||||
gl.PROGRAM_BINARY_FORMATS_OES = 0x87ff;
|
||||
gl.PROGRAM_BINARY_LENGTH_OES = 0x8741;
|
||||
gl.PROGRAM_OBJECT_EXT = 0x8b40;
|
||||
gl.PROGRAM_PIPELINE_BINDING_EXT = 0x825a;
|
||||
gl.PROGRAM_PIPELINE_OBJECT_EXT = 0x8a4f;
|
||||
gl.PROGRAM_SEPARABLE_EXT = 0x8258;
|
||||
gl.QCOM_alpha_test = 0x1;
|
||||
gl.QCOM_binning_control = 0x1;
|
||||
gl.QCOM_driver_control = 0x1;
|
||||
gl.QCOM_extended_get = 0x1;
|
||||
gl.QCOM_extended_get2 = 0x1;
|
||||
gl.QCOM_perfmon_global_mode = 0x1;
|
||||
gl.QCOM_tiled_rendering = 0x1;
|
||||
gl.QCOM_writeonly_rendering = 0x1;
|
||||
gl.QUERY = 0x82e3;
|
||||
gl.QUERY_OBJECT_EXT = 0x9153;
|
||||
gl.QUERY_RESULT_AVAILABLE_EXT = 0x8867;
|
||||
gl.QUERY_RESULT_EXT = 0x8866;
|
||||
gl.R16F_EXT = 0x822d;
|
||||
gl.R32F_EXT = 0x822e;
|
||||
gl.R8_EXT = 0x8229;
|
||||
gl.READ_BUFFER_EXT = 0xc02;
|
||||
gl.READ_BUFFER_NV = 0xc02;
|
||||
gl.READ_FRAMEBUFFER_ANGLE = 0x8ca8;
|
||||
gl.READ_FRAMEBUFFER_APPLE = 0x8ca8;
|
||||
gl.READ_FRAMEBUFFER_BINDING_ANGLE = 0x8caa;
|
||||
gl.READ_FRAMEBUFFER_BINDING_APPLE = 0x8caa;
|
||||
gl.READ_FRAMEBUFFER_BINDING_NV = 0x8caa;
|
||||
gl.READ_FRAMEBUFFER_NV = 0x8ca8;
|
||||
gl.RED_BITS = 0xd52;
|
||||
gl.RED_EXT = 0x1903;
|
||||
gl.RENDERBUFFER = 0x8d41;
|
||||
gl.RENDERBUFFER_ALPHA_SIZE = 0x8d53;
|
||||
gl.RENDERBUFFER_BINDING = 0x8ca7;
|
||||
gl.RENDERBUFFER_BLUE_SIZE = 0x8d52;
|
||||
gl.RENDERBUFFER_DEPTH_SIZE = 0x8d54;
|
||||
gl.RENDERBUFFER_GREEN_SIZE = 0x8d51;
|
||||
gl.RENDERBUFFER_HEIGHT = 0x8d43;
|
||||
gl.RENDERBUFFER_INTERNAL_FORMAT = 0x8d44;
|
||||
gl.RENDERBUFFER_RED_SIZE = 0x8d50;
|
||||
gl.RENDERBUFFER_SAMPLES_ANGLE = 0x8cab;
|
||||
gl.RENDERBUFFER_SAMPLES_APPLE = 0x8cab;
|
||||
gl.RENDERBUFFER_SAMPLES_EXT = 0x8cab;
|
||||
gl.RENDERBUFFER_SAMPLES_IMG = 0x9133;
|
||||
gl.RENDERBUFFER_SAMPLES_NV = 0x8cab;
|
||||
gl.RENDERBUFFER_STENCIL_SIZE = 0x8d55;
|
||||
gl.RENDERBUFFER_WIDTH = 0x8d42;
|
||||
gl.RENDERER = 0x1f01;
|
||||
gl.RENDER_DIRECT_TO_FRAMEBUFFER_QCOM = 0x8fb3;
|
||||
gl.REPEAT = 0x2901;
|
||||
gl.REPLACE = 0x1e01;
|
||||
gl.REQUIRED_TEXTURE_IMAGE_UNITS_OES = 0x8d68;
|
||||
gl.RESET_NOTIFICATION_STRATEGY_EXT = 0x8256;
|
||||
gl.RG16F_EXT = 0x822f;
|
||||
gl.RG32F_EXT = 0x8230;
|
||||
gl.RG8_EXT = 0x822b;
|
||||
gl.RGB = 0x1907;
|
||||
gl.RGB10_A2_EXT = 0x8059;
|
||||
gl.RGB10_EXT = 0x8052;
|
||||
gl.RGB16F_EXT = 0x881b;
|
||||
gl.RGB32F_EXT = 0x8815;
|
||||
gl.RGB565 = 0x8d62;
|
||||
gl.RGB565_OES = 0x8d62;
|
||||
gl.RGB5_A1 = 0x8057;
|
||||
gl.RGB5_A1_OES = 0x8057;
|
||||
gl.RGB8_OES = 0x8051;
|
||||
gl.RGBA = 0x1908;
|
||||
gl.RGBA16F_EXT = 0x881a;
|
||||
gl.RGBA32F_EXT = 0x8814;
|
||||
gl.RGBA4 = 0x8056;
|
||||
gl.RGBA4_OES = 0x8056;
|
||||
gl.RGBA8_OES = 0x8058;
|
||||
gl.RGB_422_APPLE = 0x8a1f;
|
||||
gl.RG_EXT = 0x8227;
|
||||
gl.SAMPLER = 0x82e6;
|
||||
gl.SAMPLER_2D = 0x8b5e;
|
||||
gl.SAMPLER_2D_ARRAY_SHADOW_NV = 0x8dc4;
|
||||
gl.SAMPLER_2D_SHADOW_EXT = 0x8b62;
|
||||
gl.SAMPLER_3D_OES = 0x8b5f;
|
||||
gl.SAMPLER_CUBE = 0x8b60;
|
||||
gl.SAMPLER_CUBE_SHADOW_NV = 0x8dc5;
|
||||
gl.SAMPLER_EXTERNAL_OES = 0x8d66;
|
||||
gl.SAMPLES = 0x80a9;
|
||||
gl.SAMPLE_ALPHA_TO_COVERAGE = 0x809e;
|
||||
gl.SAMPLE_BUFFERS = 0x80a8;
|
||||
gl.SAMPLE_COVERAGE = 0x80a0;
|
||||
gl.SAMPLE_COVERAGE_INVERT = 0x80ab;
|
||||
gl.SAMPLE_COVERAGE_VALUE = 0x80aa;
|
||||
gl.SCISSOR_BOX = 0xc10;
|
||||
gl.SCISSOR_TEST = 0xc11;
|
||||
gl.SGX_BINARY_IMG = 0x8c0a;
|
||||
gl.SGX_PROGRAM_BINARY_IMG = 0x9130;
|
||||
gl.SHADER = 0x82e1;
|
||||
gl.SHADER_BINARY_DMP = 0x9250;
|
||||
gl.SHADER_BINARY_FORMATS = 0x8df8;
|
||||
gl.SHADER_BINARY_VIV = 0x8fc4;
|
||||
gl.SHADER_COMPILER = 0x8dfa;
|
||||
gl.SHADER_OBJECT_EXT = 0x8b48;
|
||||
gl.SHADER_SOURCE_LENGTH = 0x8b88;
|
||||
gl.SHADER_TYPE = 0x8b4f;
|
||||
gl.SHADING_LANGUAGE_VERSION = 0x8b8c;
|
||||
gl.SHORT = 0x1402;
|
||||
gl.SIGNALED_APPLE = 0x9119;
|
||||
gl.SLUMINANCE8_ALPHA8_NV = 0x8c45;
|
||||
gl.SLUMINANCE8_NV = 0x8c47;
|
||||
gl.SLUMINANCE_ALPHA_NV = 0x8c44;
|
||||
gl.SLUMINANCE_NV = 0x8c46;
|
||||
gl.SRC_ALPHA = 0x302;
|
||||
gl.SRC_ALPHA_SATURATE = 0x308;
|
||||
gl.SRC_COLOR = 0x300;
|
||||
gl.SRGB8_ALPHA8_EXT = 0x8c43;
|
||||
gl.SRGB8_NV = 0x8c41;
|
||||
gl.SRGB_ALPHA_EXT = 0x8c42;
|
||||
gl.SRGB_EXT = 0x8c40;
|
||||
gl.STACK_OVERFLOW = 0x503;
|
||||
gl.STACK_UNDERFLOW = 0x504;
|
||||
gl.STATE_RESTORE = 0x8bdc;
|
||||
gl.STATIC_DRAW = 0x88e4;
|
||||
gl.STENCIL_ATTACHMENT = 0x8d20;
|
||||
gl.STENCIL_BACK_FAIL = 0x8801;
|
||||
gl.STENCIL_BACK_FUNC = 0x8800;
|
||||
gl.STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
|
||||
gl.STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
|
||||
gl.STENCIL_BACK_REF = 0x8ca3;
|
||||
gl.STENCIL_BACK_VALUE_MASK = 0x8ca4;
|
||||
gl.STENCIL_BACK_WRITEMASK = 0x8ca5;
|
||||
gl.STENCIL_BITS = 0xd57;
|
||||
gl.STENCIL_BUFFER_BIT = 0x400;
|
||||
gl.STENCIL_BUFFER_BIT0_QCOM = 0x10000;
|
||||
gl.STENCIL_BUFFER_BIT1_QCOM = 0x20000;
|
||||
gl.STENCIL_BUFFER_BIT2_QCOM = 0x40000;
|
||||
gl.STENCIL_BUFFER_BIT3_QCOM = 0x80000;
|
||||
gl.STENCIL_BUFFER_BIT4_QCOM = 0x100000;
|
||||
gl.STENCIL_BUFFER_BIT5_QCOM = 0x200000;
|
||||
gl.STENCIL_BUFFER_BIT6_QCOM = 0x400000;
|
||||
gl.STENCIL_BUFFER_BIT7_QCOM = 0x800000;
|
||||
gl.STENCIL_CLEAR_VALUE = 0xb91;
|
||||
gl.STENCIL_EXT = 0x1802;
|
||||
gl.STENCIL_FAIL = 0xb94;
|
||||
gl.STENCIL_FUNC = 0xb92;
|
||||
gl.STENCIL_INDEX1_OES = 0x8d46;
|
||||
gl.STENCIL_INDEX4_OES = 0x8d47;
|
||||
gl.STENCIL_INDEX8 = 0x8d48;
|
||||
gl.STENCIL_PASS_DEPTH_FAIL = 0xb95;
|
||||
gl.STENCIL_PASS_DEPTH_PASS = 0xb96;
|
||||
gl.STENCIL_REF = 0xb97;
|
||||
gl.STENCIL_TEST = 0xb90;
|
||||
gl.STENCIL_VALUE_MASK = 0xb93;
|
||||
gl.STENCIL_WRITEMASK = 0xb98;
|
||||
gl.STREAM_DRAW = 0x88e0;
|
||||
gl.SUBPIXEL_BITS = 0xd50;
|
||||
gl.SYNC_CONDITION_APPLE = 0x9113;
|
||||
gl.SYNC_FENCE_APPLE = 0x9116;
|
||||
gl.SYNC_FLAGS_APPLE = 0x9115;
|
||||
gl.SYNC_FLUSH_COMMANDS_BIT_APPLE = 0x1;
|
||||
gl.SYNC_GPU_COMMANDS_COMPLETE_APPLE = 0x9117;
|
||||
gl.SYNC_OBJECT_APPLE = 0x8a53;
|
||||
gl.SYNC_STATUS_APPLE = 0x9114;
|
||||
gl.TEXTURE = 0x1702;
|
||||
gl.TEXTURE0 = 0x84c0;
|
||||
gl.TEXTURE1 = 0x84c1;
|
||||
gl.TEXTURE10 = 0x84ca;
|
||||
gl.TEXTURE11 = 0x84cb;
|
||||
gl.TEXTURE12 = 0x84cc;
|
||||
gl.TEXTURE13 = 0x84cd;
|
||||
gl.TEXTURE14 = 0x84ce;
|
||||
gl.TEXTURE15 = 0x84cf;
|
||||
gl.TEXTURE16 = 0x84d0;
|
||||
gl.TEXTURE17 = 0x84d1;
|
||||
gl.TEXTURE18 = 0x84d2;
|
||||
gl.TEXTURE19 = 0x84d3;
|
||||
gl.TEXTURE2 = 0x84c2;
|
||||
gl.TEXTURE20 = 0x84d4;
|
||||
gl.TEXTURE21 = 0x84d5;
|
||||
gl.TEXTURE22 = 0x84d6;
|
||||
gl.TEXTURE23 = 0x84d7;
|
||||
gl.TEXTURE24 = 0x84d8;
|
||||
gl.TEXTURE25 = 0x84d9;
|
||||
gl.TEXTURE26 = 0x84da;
|
||||
gl.TEXTURE27 = 0x84db;
|
||||
gl.TEXTURE28 = 0x84dc;
|
||||
gl.TEXTURE29 = 0x84dd;
|
||||
gl.TEXTURE3 = 0x84c3;
|
||||
gl.TEXTURE30 = 0x84de;
|
||||
gl.TEXTURE31 = 0x84df;
|
||||
gl.TEXTURE4 = 0x84c4;
|
||||
gl.TEXTURE5 = 0x84c5;
|
||||
gl.TEXTURE6 = 0x84c6;
|
||||
gl.TEXTURE7 = 0x84c7;
|
||||
gl.TEXTURE8 = 0x84c8;
|
||||
gl.TEXTURE9 = 0x84c9;
|
||||
gl.TEXTURE_2D = 0xde1;
|
||||
gl.TEXTURE_3D_OES = 0x806f;
|
||||
gl.TEXTURE_BINDING_2D = 0x8069;
|
||||
gl.TEXTURE_BINDING_3D_OES = 0x806a;
|
||||
gl.TEXTURE_BINDING_CUBE_MAP = 0x8514;
|
||||
gl.TEXTURE_BINDING_EXTERNAL_OES = 0x8d67;
|
||||
gl.TEXTURE_BORDER_COLOR_NV = 0x1004;
|
||||
gl.TEXTURE_COMPARE_FUNC_EXT = 0x884d;
|
||||
gl.TEXTURE_COMPARE_MODE_EXT = 0x884c;
|
||||
gl.TEXTURE_CUBE_MAP = 0x8513;
|
||||
gl.TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
|
||||
gl.TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
|
||||
gl.TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851a;
|
||||
gl.TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
|
||||
gl.TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
|
||||
gl.TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
|
||||
gl.TEXTURE_DEPTH_QCOM = 0x8bd4;
|
||||
gl.TEXTURE_EXTERNAL_OES = 0x8d65;
|
||||
gl.TEXTURE_FORMAT_QCOM = 0x8bd6;
|
||||
gl.TEXTURE_HEIGHT_QCOM = 0x8bd3;
|
||||
gl.TEXTURE_IMAGE_VALID_QCOM = 0x8bd8;
|
||||
gl.TEXTURE_IMMUTABLE_FORMAT_EXT = 0x912f;
|
||||
gl.TEXTURE_INTERNAL_FORMAT_QCOM = 0x8bd5;
|
||||
gl.TEXTURE_MAG_FILTER = 0x2800;
|
||||
gl.TEXTURE_MAX_ANISOTROPY_EXT = 0x84fe;
|
||||
gl.TEXTURE_MAX_LEVEL_APPLE = 0x813d;
|
||||
gl.TEXTURE_MIN_FILTER = 0x2801;
|
||||
gl.TEXTURE_NUM_LEVELS_QCOM = 0x8bd9;
|
||||
gl.TEXTURE_OBJECT_VALID_QCOM = 0x8bdb;
|
||||
gl.TEXTURE_SAMPLES_IMG = 0x9136;
|
||||
gl.TEXTURE_TARGET_QCOM = 0x8bda;
|
||||
gl.TEXTURE_TYPE_QCOM = 0x8bd7;
|
||||
gl.TEXTURE_USAGE_ANGLE = 0x93a2;
|
||||
gl.TEXTURE_WIDTH_QCOM = 0x8bd2;
|
||||
gl.TEXTURE_WRAP_R_OES = 0x8072;
|
||||
gl.TEXTURE_WRAP_S = 0x2802;
|
||||
gl.TEXTURE_WRAP_T = 0x2803;
|
||||
gl.TIMEOUT_EXPIRED_APPLE = 0x911b;
|
||||
gl.TIMEOUT_IGNORED_APPLE = 0xffffffffffffffff;
|
||||
gl.TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE = 0x93a0;
|
||||
gl.TRIANGLES = 0x4;
|
||||
gl.TRIANGLE_FAN = 0x6;
|
||||
gl.TRIANGLE_STRIP = 0x5;
|
||||
gl.TRUE = 0x1;
|
||||
gl.UNKNOWN_CONTEXT_RESET_EXT = 0x8255;
|
||||
gl.UNPACK_ALIGNMENT = 0xcf5;
|
||||
gl.UNPACK_ROW_LENGTH = 0xcf2;
|
||||
gl.UNPACK_SKIP_PIXELS = 0xcf4;
|
||||
gl.UNPACK_SKIP_ROWS = 0xcf3;
|
||||
gl.UNSIGNALED_APPLE = 0x9118;
|
||||
gl.UNSIGNED_BYTE = 0x1401;
|
||||
gl.UNSIGNED_INT = 0x1405;
|
||||
gl.UNSIGNED_INT64_AMD = 0x8bc2;
|
||||
gl.UNSIGNED_INT_10_10_10_2_OES = 0x8df6;
|
||||
gl.UNSIGNED_INT_24_8_OES = 0x84fa;
|
||||
gl.UNSIGNED_INT_2_10_10_10_REV_EXT = 0x8368;
|
||||
gl.UNSIGNED_NORMALIZED_EXT = 0x8c17;
|
||||
gl.UNSIGNED_SHORT = 0x1403;
|
||||
gl.UNSIGNED_SHORT_1_5_5_5_REV_EXT = 0x8366;
|
||||
gl.UNSIGNED_SHORT_4_4_4_4 = 0x8033;
|
||||
gl.UNSIGNED_SHORT_4_4_4_4_REV_EXT = 0x8365;
|
||||
gl.UNSIGNED_SHORT_4_4_4_4_REV_IMG = 0x8365;
|
||||
gl.UNSIGNED_SHORT_5_5_5_1 = 0x8034;
|
||||
gl.UNSIGNED_SHORT_5_6_5 = 0x8363;
|
||||
gl.UNSIGNED_SHORT_8_8_APPLE = 0x85ba;
|
||||
gl.UNSIGNED_SHORT_8_8_REV_APPLE = 0x85bb;
|
||||
gl.VALIDATE_STATUS = 0x8b83;
|
||||
gl.VENDOR = 0x1f00;
|
||||
gl.VERSION = 0x1f02;
|
||||
gl.VERTEX_ARRAY_BINDING_OES = 0x85b5;
|
||||
gl.VERTEX_ARRAY_OBJECT_EXT = 0x9154;
|
||||
gl.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889f;
|
||||
gl.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88fe;
|
||||
gl.VERTEX_ATTRIB_ARRAY_DIVISOR_NV = 0x88fe;
|
||||
gl.VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
|
||||
gl.VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886a;
|
||||
gl.VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
|
||||
gl.VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
|
||||
gl.VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
|
||||
gl.VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
|
||||
gl.VERTEX_SHADER = 0x8b31;
|
||||
gl.VERTEX_SHADER_BIT_EXT = 0x1;
|
||||
gl.VIEWPORT = 0xba2;
|
||||
gl.VIV_shader_binary = 0x1;
|
||||
gl.WAIT_FAILED_APPLE = 0x911d;
|
||||
gl.WRITEONLY_RENDERING_QCOM = 0x8823;
|
||||
gl.WRITE_ONLY_OES = 0x88b9;
|
||||
gl.Z400_BINARY_AMD = 0x8740;
|
||||
gl.ZERO = 0x0;
|
|
@ -45,3 +45,18 @@ Object.defineProperties(sys,
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
// Forces the garbage collector
|
||||
sys.garbageCollect = function() {
|
||||
__jsc__.garbageCollect();
|
||||
};
|
||||
|
||||
// Dumps rooted objects
|
||||
sys.dumpRoot = function() {
|
||||
__jsc__.dumpRoot();
|
||||
};
|
||||
|
||||
// restarts the JS VM
|
||||
sys.restartVM = function() {
|
||||
__restartVM();
|
||||
};
|
|
@ -1 +1 @@
|
|||
cf0289be9db8569cb09462929ac74c94b9ecaf91
|
||||
56a68fa52fdce5d6846212933503a86ce63d08b5
|
|
@ -3,7 +3,9 @@
|
|||
#include "cocos2d.h"
|
||||
#include "SimpleAudioEngine.h"
|
||||
#include "ScriptingCore.h"
|
||||
#include "cocos2dx.hpp"
|
||||
#include "jsb_cocos2dx_auto.hpp"
|
||||
#include "jsb_cocos2dx_extension_auto.hpp"
|
||||
#include "jsb_cocos2dx_extension_manual.h"
|
||||
#include "cocos2d_specifics.hpp"
|
||||
#include "js_bindings_chipmunk_registration.h"
|
||||
#include "js_bindings_ccbreader.h"
|
||||
|
@ -35,7 +37,9 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
|
||||
ScriptingCore* sc = ScriptingCore::getInstance();
|
||||
sc->addRegisterCallback(register_all_cocos2dx);
|
||||
sc->addRegisterCallback(register_all_cocos2dx_extension);
|
||||
sc->addRegisterCallback(register_cocos2dx_js_extensions);
|
||||
sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
|
||||
sc->addRegisterCallback(register_CCBuilderReader);
|
||||
sc->addRegisterCallback(jsb_register_chipmunk);
|
||||
sc->addRegisterCallback(jsb_register_system);
|
||||
|
|
Loading…
Reference in New Issue