Device | CPU | GPU | Display | OpenGL |
---|---|---|---|---|
iPod touch 4 | A4 | PowerVR SGX535 | 960 x 640 | 2.1 |
iPod touch 5 | A5 | PowerVR SGX543MP2 | 1136 x 640 | 2.1 |
iPad 1 | A4 | PowerVR SGX535 | 1024 x 768 | 2.1 |
iPad 2 | A5 | PowerVR SGX543MP2 | 1024 x 768 | 2.1 |
iPad 3 | A5X | PowerVR SGX543MP4 | 2048 x 1536 | 2.1 |
iPad 4 | A6X | PowerVR SGX554MP4 | 2048 x 1536 | 2.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// json is a JSON atlas generated by TexturePacker | |
// imagepath is a url to the full texture atlas image | |
var atlasTexture = THREE.ImageUtils.loadTexture( imagepath, undefined, function() { | |
for (var key in json.frames) { | |
var tex = atlasTexture.clone(); | |
var frame = json.frames[key].frame; | |
tex.repeat.x = ( frame.w / atlasTexture.image.width ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this patch is BSD License @kyo_ago | |
Index: purpleplayer.js | |
=================================================================== | |
--- purpleplayer.js (revision 8175) | |
+++ purpleplayer.js (working copy) | |
@@ -239,6 +239,10 @@ | |
); | |
} | |
+function isAndroid(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* need underscore.js */ | |
/** | |
* randomNum | |
* randomNum(3,6); => 4 | |
*/ | |
var randomNum = function(from, to) { | |
return from + Math.floor( Math.random() * (to - from + 1) ); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! CSS3PropertyDuplicate() | |
let reg_save = @@ | |
silent normal Y | |
let css3 = @@ | |
let ind = matchlist(css3, '\v(\s*)(.*)') | |
let webkit = ind[1] . "-webkit-" . ind[2] | |
let moz = ind[1] . "-moz-" . ind[2] | |
let ms = ind[1] . "-ms-" . ind[2] | |
let o = ind[1] . "-o-" . ind[2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* load http://www.modernizr.com/ then, do following for Retina display. */ | |
.className { | |
background:url([email protected]); /* low res img */ | |
} | |
@media only screen and (-webkit-min-device-pixel-ratio:2) { | |
.backgroundsize .className { | |
background:url([email protected]); /* high res img */ | |
} | |
} |