WGE (Web Graphics Engine) 是一个基于Web平台的图形引擎。主要使用js, canvas 2d, canvas webgl开发
130 |WGE 目前主要定位为一个简单易用,快速上手,并能够加快web应用开发的框架库。(For study only)
131 |webgl版:
139 |demo列表: canvas-webgl demos
140 | 141 |├── .gitattributes ├── .gitignore ├── 2d ├── demo_meshes │ └── index.html ├── demo_photoFrames │ ├── demo2.html │ ├── index.html │ └── photoFrames.js ├── gui_test │ ├── README.html │ ├── gui_test1.html │ ├── gui_test2.html │ ├── gui_test3.html │ ├── gui_test4.html │ └── index.html ├── index.html ├── slideshows │ ├── Burst │ ├── Burst.html │ ├── Burst.js │ ├── Classic.html │ ├── Inspiration.OGG │ ├── Inspiration.mp3 │ ├── Live My Life.OGG │ ├── Live My Life.mp3 │ ├── Memories.html │ ├── Party.html │ ├── Piano.html │ ├── README.html │ ├── Shades.html │ ├── Slide_maniac.OGG │ ├── Slide_maniac.mp3 │ ├── Sliders.html │ ├── Snapshots.html │ ├── Vignette.html │ ├── Vignette.js │ ├── classic.js │ ├── happy.OGG │ ├── happy.mp3 │ ├── index.html │ ├── memories.jpg │ ├── memories.js │ ├── photoFrames.html │ ├── photoFrames.js │ ├── piano.js │ ├── piano.mp3 │ ├── slideshow_filmic.OGG │ ├── slideshow_filmic.mp3 │ ├── slideshow_live.OGG │ ├── slideshow_live.mp3 │ ├── slideshow_love.OGG │ ├── slideshow_love.mp3 │ ├── slideshow_photoframe.OGG │ ├── slideshow_photoframe.mp3 │ ├── slideshow_split.OGG │ ├── slideshow_split.mp3 │ ├── slideshow_wonderful.OGG │ ├── slideshow_wonderful.mp3 │ └── snapshots.js ├── wgeFilters.js ├── wgeSlideshow.js └── wgeSprite.js ├── 3rdparty ├── soundmanager2-jsmin.js ├── soundmanager2-nodebug-jsmin.js ├── soundmanager2-nodebug.js └── soundmanager2.js ├── 404.html ├── 404.png ├── CNAME ├── LICENSE.txt ├── README.md ├── WGE 简介.pptx ├── about.html ├── extends ├── wgeCommonActions.js ├── wgeExtendActions.js ├── wgeExtendFunctions.js └── wgeFotorSlideshowInterface.js ├── favicon.ico ├── image404.jpg ├── index.html ├── logo.png ├── man └── index.html ├── res ├── 0.jpg ├── 1.jpg ├── 10.jpg ├── 11.jpg ├── 12.jpg ├── 13.jpg ├── 14.jpg ├── 15.jpg ├── 16.jpg ├── 17.jpg ├── 18.jpg ├── 19.jpg ├── 2.jpg ├── 20.jpg ├── 21.jpg ├── 22.jpg ├── 23.jpg ├── 24.jpg ├── 25.jpg ├── 26.jpg ├── 27.jpg ├── 28.jpg ├── 29.jpg ├── 3.jpg ├── 30.jpg ├── 31.jpg ├── 32.jpg ├── 33.jpg ├── 34.jpg ├── 35.jpg ├── 36.jpg ├── 37.jpg ├── 38.jpg ├── 39.jpg ├── 4.jpg ├── 40.jpg ├── 41.jpg ├── 42.jpg ├── 43.jpg ├── 44.jpg ├── 45.jpg ├── 46.jpg ├── 47.jpg ├── 48.jpg ├── 49.jpg ├── 5.jpg ├── 50.jpg ├── 51.jpg ├── 52.jpg ├── 6.jpg ├── 7.jpg ├── 8.jpg ├── 9.jpg ├── arc.jpg ├── box │ ├── a1.jpg │ ├── a2.jpg │ ├── a3.jpg │ ├── a4.jpg │ ├── bridge_negx.jpg │ ├── bridge_negy.jpg │ ├── bridge_negz.jpg │ ├── bridge_posx.jpg │ ├── bridge_posy.jpg │ ├── bridge_posz.jpg │ ├── bump.jpg │ ├── bump2.jpg │ ├── mountain_neg_x.jpg │ ├── mountain_neg_y.jpg │ ├── mountain_neg_z.jpg │ ├── mountain_pos_x.jpg │ ├── mountain_pos_y.jpg │ ├── mountain_pos_z.jpg │ ├── skycubemap_back.jpg │ ├── skycubemap_down.jpg │ ├── skycubemap_down_cube.jpg │ ├── skycubemap_front.jpg │ ├── skycubemap_left.jpg │ ├── skycubemap_right.jpg │ ├── skycubemap_up.jpg │ └── skycubemap_up_cube.jpg ├── comic0.jpg ├── comic1.jpg ├── comic10.jpg ├── comic11.jpg ├── comic12.jpg ├── comic13.jpg ├── comic14.jpg ├── comic15.jpg ├── comic16.jpg ├── comic2.jpg ├── comic3.jpg ├── comic4.jpg ├── comic5.jpg ├── comic6.jpg ├── comic7.jpg ├── comic8.jpg ├── comic9.jpg ├── face.jpg ├── face2.jpg ├── maskFace.jpg ├── materials │ ├── 0.jpg │ ├── 1.jpg │ ├── 2.jpg │ ├── 3.jpg │ ├── 4.jpg │ ├── 5.jpg │ └── 6.jpg ├── png │ ├── 0.png │ ├── 1.png │ ├── 10.png │ ├── 11.png │ ├── 12.png │ ├── 13.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── 5.png │ ├── 6.png │ ├── 7.png │ ├── 8.png │ └── 9.png ├── snd1.mp3 ├── test.jpg ├── test2.jpg └── video │ └── 1.mp4 ├── screenshots ├── 2d_gui_test2.jpg ├── cube_map_reflect.jpg ├── cube_map_refract.jpg ├── teapot_perpixel.jpg ├── webgl_gui_test1.jpg ├── webgl_gui_test2.jpg ├── webgl_gui_test3.jpg └── webgl_gui_test4.jpg ├── tools ├── code_format.html ├── index.html └── wge2d.html ├── webgl ├── README.html ├── demos │ ├── README.html │ ├── TeapotPerPixel.html │ ├── TeapotPerVertex.html │ ├── alphaBlendTest.html │ ├── bump_mapping_1.html │ ├── faceDeform.html │ ├── faceDistortion.html │ ├── faceDistortion_arc.html │ ├── faceDistortion_arc2.html │ ├── faceDistortion_facepp.html │ ├── index.html │ ├── sceneRoamingTest1.html │ ├── sceneRoamingTest2.html │ ├── skyBox1.html │ ├── skyBox2.html │ ├── skyBox3.html │ ├── skyBox4.html │ ├── skyBox5.html │ ├── sprite2dtest1.html │ ├── sprite2dtest2.html │ └── stencilTest.html ├── effects │ └── 1_wavingflag.html ├── index.html ├── models │ ├── cube.js │ ├── mesh2d.js │ ├── sphere.js │ └── teapot-streams.js ├── wgeFilters.js ├── wgeLerpBlurUtil.js ├── wgeMappingBlendUtil.js ├── wgeMappingUtil.js ├── wgeScene.js ├── wgeSprite2d.fsh.txt ├── wgeSprite2d.js ├── wgeSprite2d.vsh.txt ├── wgeSprite2dExt.fsh.txt ├── wgeSprite2dExt.vsh.txt ├── wgeSprite2dInterchange.js ├── wgeSprite3d.fsh.txt ├── wgeSprite3d.js ├── wgeSprite3d.vsh.txt └── wgeWebGL.js ├── wge.js ├── wgeAlgorithm.js ├── wgeAnimation.js ├── wgeColor.js ├── wgeCore.js ├── wgeFont.js ├── wgeGUI.js ├── wgeNoteList.txt └── wgeParticleSystem.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .svn 2 | .git 3 | .idea/ -------------------------------------------------------------------------------- /2d/demo_meshes/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |本页面使用html5编写,如果您使用的是IE,请保证IE版本>=9。如果图片过多导致加载失败,请刷新界面
20 | 21 | 147 | 148 | 149 | 176 | 232 | 233 | 234 | -------------------------------------------------------------------------------- /2d/demo_photoFrames/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |本页面使用html5编写,如果您使用的是IE,请保证IE版本>=9。如果图片过多导致加载失败,请刷新界面
21 | 22 | 149 | 150 | 151 | 171 | 172 | 228 | 229 | 230 | -------------------------------------------------------------------------------- /2d/gui_test/README.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |简单测试性能、正确性等
9 | 10 | 11 | -------------------------------------------------------------------------------- /2d/gui_test/gui_test1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |(copyright fotor.com)
26 | 37 |使用HTML5实现的平面图片展示效果。官方网址:slideshow.fotor.com
9 | 10 | 11 | -------------------------------------------------------------------------------- /2d/slideshows/Shades.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |(copyright fotor.com)
28 | 39 |本页面使用html5编写,如果您使用的是IE,请保证IE版本>=9。如果图片过多导致加载失败,请刷新界面
21 | 22 | 149 | 150 | 151 | 171 | 172 | 228 | 229 | 230 | -------------------------------------------------------------------------------- /2d/slideshows/piano.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/piano.mp3 -------------------------------------------------------------------------------- /2d/slideshows/slideshow_filmic.OGG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_filmic.OGG -------------------------------------------------------------------------------- /2d/slideshows/slideshow_filmic.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_filmic.mp3 -------------------------------------------------------------------------------- /2d/slideshows/slideshow_live.OGG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_live.OGG -------------------------------------------------------------------------------- /2d/slideshows/slideshow_live.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_live.mp3 -------------------------------------------------------------------------------- /2d/slideshows/slideshow_love.OGG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_love.OGG -------------------------------------------------------------------------------- /2d/slideshows/slideshow_love.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_love.mp3 -------------------------------------------------------------------------------- /2d/slideshows/slideshow_photoframe.OGG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_photoframe.OGG -------------------------------------------------------------------------------- /2d/slideshows/slideshow_photoframe.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_photoframe.mp3 -------------------------------------------------------------------------------- /2d/slideshows/slideshow_split.OGG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_split.OGG -------------------------------------------------------------------------------- /2d/slideshows/slideshow_split.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_split.mp3 -------------------------------------------------------------------------------- /2d/slideshows/slideshow_wonderful.OGG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_wonderful.OGG -------------------------------------------------------------------------------- /2d/slideshows/slideshow_wonderful.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/2d/slideshows/slideshow_wonderful.mp3 -------------------------------------------------------------------------------- /2d/slideshows/snapshots.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /* 3 | * snapshots.js 4 | * 5 | * Created on: 2014-7-29 6 | * Author: Wang Yang 7 | * Blog: http://blog.wysaid.org 8 | */ 9 | 10 | var snapshotsConfig = 11 | { 12 | "parserName" : "defaultParser", //设置解析器,默认defaultParser可不填写 13 | "loopTime" : 15000, // 完成单次循环所需总时间 14 | "loopImageNum" : 15, // 一次循环所需图片数 15 | "audioFileName" : ["happy.mp3", "happy.ogg"], // 音乐文件名 16 | "musicDuration" : 60000, //音乐文件总时长 17 | 18 | //场景, 由 AnimationSprite构成 19 | "sceneArr" : 20 | [ 21 | //第一个 22 | { 23 | //类名 24 | "imageindex" : 0, //当前sprite绑定的图片 25 | //初始化参数,参数为数组,一般是两个数 26 | "initArgs" : 27 | [ 28 | 0, 6800 29 | ], 30 | 31 | "spriteConfig" : 32 | { 33 | //"name" : "initSprite", //默认为"initSprite" 34 | "filter" : null, 35 | "filterArgs" : [], 36 | //宽高不填写则按默认配置缩放。 37 | "width" : null, 38 | "height" : null, 39 | }, 40 | 41 | //接下来要执行的操作 42 | "execFunc" : 43 | [ 44 | { 45 | "name" : "setHotspotWithRatio", 46 | "arg" : [0.5, 0.1], 47 | }, 48 | { 49 | "name" : "moveTo", 50 | "arg" : [0.5, 0.1], 51 | "relativeResolution" : true, 52 | "relativeWidth" : 0, 53 | "relativeHeight" : 1 54 | } 55 | ], 56 | 57 | "actions" : 58 | [ 59 | { 60 | "name" : "UniformScaleAction", 61 | "arg" : [[0, 6000], [1.3, 1.3], [1, 1]], 62 | } 63 | ], 64 | 65 | "childNodes" : 66 | [ 67 | 68 | ] 69 | } 70 | ], 71 | }; 72 | 73 | WGE.Snapshots = WGE.Class(WGE.SlideshowInterface, 74 | { 75 | config : 1, 76 | audioFileName : ["happy.mp3", "happy.ogg"], // 音乐文件名 77 | 78 | loopTime : 5000, 79 | loopImageNum : 1, 80 | blurredImgs : null, 81 | boundingBoxes : null, 82 | 83 | _filter : null, 84 | _syncTime : 2000, 85 | 86 | _queue : null, 87 | 88 | _timerID : null, 89 | _finishCallback : null, 90 | _eachCallback : null, 91 | _loadingFinish : false, 92 | 93 | initialize : function() 94 | { 95 | this.blurredImgs = []; 96 | this.boundingBoxes = []; 97 | this._filter = new WGE.Filter.Monochrome(); 98 | WGE.SlideshowInterface.initialize.apply(this, arguments); 99 | }, 100 | 101 | _genBlurredImages : function(imgArr) 102 | { 103 | var blurredImgs = []; 104 | 105 | for(var i in imgArr) 106 | { 107 | blurredImgs.push(this._genBlurredImage(imgArr[i])); 108 | } 109 | return blurredImgs; 110 | }, 111 | 112 | _genBlurredImage : function(img) 113 | { 114 | var cvs; 115 | var dw = 1024 / 8, dh = 768 / 8; 116 | var dstData; 117 | cvs = WGE.CE('canvas'); 118 | cvs.width = dw * 2 + 20; 119 | cvs.height = dh * 2 + 20; 120 | 121 | var ctx = cvs.getContext('2d'); 122 | 123 | if(img.getContext) 124 | { 125 | dstData = WGE.Filter.StackBlur.stackBlurCanvasRGB(img, img.width / 2 - dw - 20, img.height / 2 - dh - 20, cvs.width, cvs.height, 10); 126 | } 127 | else 128 | { 129 | ctx.drawImage(img, img.width / 2 - dw - 20, img.height / 2 - dh - 20, cvs.width, cvs.height, 0, 0, cvs.width, cvs.height); 130 | dstData = WGE.Filter.StackBlur.stackBlurCanvasRGB(cvs, img.width / 2 - dw - 20, img.height / 2 - dh - 20, cvs.width, cvs.height, 10); 131 | } 132 | 133 | ctx.putImageData(dstData, 0, 0); 134 | return cvs; 135 | }, 136 | 137 | _genBoundingBoxes : function(imgArr) 138 | { 139 | var boundingBoxArr = []; 140 | 141 | for(var i in imgArr) 142 | { 143 | boundingBoxArr.push(this._genBoundingBox(imgArr[i])); 144 | } 145 | return boundingBoxArr; 146 | }, 147 | 148 | _genBoundingBox : function(img) 149 | { 150 | var cvs = WGE.CE('canvas'); 151 | cvs.width = img.width + 40; 152 | cvs.height = img.height + 40; 153 | var ctx = cvs.getContext('2d'); 154 | ctx.save(); 155 | ctx.fillStyle = "#fff"; 156 | ctx.shadowColor = "rgba(0, 0, 0, 0.8)"; 157 | ctx.shadowBlur = 10; 158 | ctx.fillRect(10, 10, cvs.width - 20, cvs.height - 20); 159 | ctx.restore(); 160 | ctx.drawImage(img, 20, 20); 161 | return cvs; 162 | }, 163 | 164 | initTimeline : function(config) 165 | { 166 | var totalTime = Math.ceil(this.boundingBoxes.length / this.loopImageNum) * this.loopTime; 167 | this.timeline = new WGE.TimeLine(totalTime); 168 | 169 | var t = 0; 170 | var zIndex = 0; 171 | 172 | for(var i in this.boundingBoxes) 173 | { 174 | var rand = Math.random(); 175 | var img = this.boundingBoxes[i]; 176 | 177 | var sprite = new WGE.SlideshowAnimationSprite(t, t + 6000, img, -1); 178 | sprite.setHotspot2Center(); 179 | sprite.moveTo(WGE.SlideshowSettings.width / 2, WGE.SlideshowSettings.height / 2); 180 | sprite.zIndex = zIndex; 181 | var scaleAction = new WGE.Actions.UniformScaleAction([0, 6000], [0.95, 0.95], [0.7, 0.7]) 182 | var alphaAction = new WGE.Actions.UniformAlphaAction([0, 1000], 0, 1); 183 | var rot1 = (Math.random() / 10 + 0.02) * (Math.random() > 0.5 ? 1 : -1); 184 | var rotateAction = new WGE.Actions.UniformRotateAction([0, 3000], 0, rot1); 185 | sprite.pushArr([scaleAction, alphaAction, rotateAction]); 186 | 187 | var img2 = this.blurredImgs[i]; 188 | 189 | var sprite2 = new WGE.SlideshowAnimationSprite(t, t + 6000, img2, -1); 190 | sprite2.setHotspot2Center(); 191 | sprite2.moveTo(WGE.SlideshowSettings.width / 2, WGE.SlideshowSettings.height / 2); 192 | var alphaAction2 = new WGE.Actions.UniformAlphaAction([0, 1000], 0, 1); 193 | sprite2.push(alphaAction2); 194 | sprite2.scaleTo(WGE.SlideshowSettings.width / (img2.width - 40), WGE.SlideshowSettings.height / (img2.height - 40)); 195 | sprite2.zIndex = zIndex - 1; 196 | this.timeline.pushArr([sprite, sprite2]); 197 | zIndex += 100; 198 | t += 5000; 199 | } 200 | 201 | if(this.audio) 202 | { 203 | return ; 204 | } 205 | var audioFileNames; 206 | if(this.audioFileName instanceof Array) 207 | { 208 | audioFileNames = []; 209 | for(var i in this.audioFileName) 210 | audioFileNames.push(WGE.SlideshowSettings.assetsDir + this.audioFileName[i]); 211 | } 212 | else audioFileNames = WGE.SlideshowSettings.assetsDir + this.audioFileName; 213 | this._initAudio(audioFileNames); 214 | }, 215 | 216 | _dealLoadingImage : function(img, index, n) 217 | { 218 | if(!this._queue) 219 | this._queue = []; 220 | this._queue.push({IMAGE : img, INDEX : index, TOTAL : n}); 221 | 222 | if(!this._timerID) 223 | this._timerID = setTimeout(this._processingQueue.bind(this), 20); 224 | }, 225 | 226 | _loadImages : function(imgURLs, finishCallback, eachCallback) 227 | { 228 | var self = this; 229 | this._finishCallback = finishCallback; 230 | this._eachCallback = eachCallback; 231 | WGE.loadImages(imgURLs, function(imgArr) { 232 | if(typeof self._dealFinishLoadingImage == 'function') 233 | self._dealFinishLoadingImage(imgArr); 234 | else 235 | self.srcImages = WGE.slideshowFitImages(imgArr, self._imageRatioX, self._imageRatioY); 236 | 237 | }, function(img, n, imageIndex) { 238 | if(typeof self._dealLoadingImage == 'function') 239 | self._dealLoadingImage(img, imageIndex, n); 240 | }); 241 | }, 242 | 243 | _processingQueue : function() 244 | { 245 | if(!(this._queue instanceof Array && this._queue.length > 0)) 246 | { 247 | this._queue = null; 248 | this._timerID = null; 249 | if(this._loadingFinish) 250 | { 251 | if(this.config) 252 | this.initTimeline(this.config); 253 | if(this._finishCallback) 254 | this._finishCallback(this.srcImages, this); 255 | this.config = null; 256 | } 257 | return ; 258 | } 259 | var obj = this._queue.shift(); 260 | this._processingImage(obj); 261 | this._timerID = setTimeout(this._processingQueue.bind(this), 20); 262 | }, 263 | 264 | _dealFinishLoadingImage : function(imgArr) 265 | { 266 | this._loadingFinish = true; 267 | if(!this._timerID) 268 | { 269 | if(this.config) 270 | this.initTimeline(this.config); 271 | if(this.finishCallback) 272 | this.finishCallback(this.srcImages || imgArr, this); 273 | this.config = null; 274 | } 275 | }, 276 | 277 | _processingImage : function(obj) 278 | { 279 | var index = obj.INDEX; 280 | var img = obj.IMAGE; 281 | var fitImg = WGE.slideshowFitImage(img); 282 | this.blurredImgs[index] = this._genBlurredImage(fitImg); 283 | this.boundingBoxes[index] = this._genBoundingBox(fitImg); 284 | this._eachCallback(img, obj.TOTAL, this); 285 | } 286 | }); 287 | 288 | -------------------------------------------------------------------------------- /404.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/404.png -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | wge.wysaid.org 2 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 fotor.com -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # **Web Graphics Engine 正在编写中** # 2 | 3 | 在线查看: wge.wysaid.org 4 | 5 | ## 2d Version ## 6 | 7 |时间轴(TimeLine)WGE Animation使用时间轴驱动方式完成动画场景。
62 | 每一个单独的动画都必须有一个时间轴,时间轴提供进度管理,更新,以及进度跳转等功能。
63 | 由时间轴管理动画精灵,动画精灵自身需要提供精灵需要出现的起始时间、结束时间,update方法和render方法以供时间轴使用
64 |
动画精灵(AnimationSprite)动画精灵为包含动画接口的精灵,通常由一个普通精灵和动画接口多重继承而来。动画精灵一般直接交由时间轴总体控制。 66 |
67 |动画接口(AnimationInterface2d)动画接口主要提供对于多个动作的管理,提供了外部向动画精灵添加动作以及动作的管理。同时也管理了精灵的时间属性,包括出现时间,结束时间等。 68 |
69 |精灵(sprite)普通精灵提供与时间轴无关的公共渲染方法以及一些自身属性,如重心设置、旋转、平移、缩放等。动画精灵继承这些方法,当精灵被绑定到一个动作上时,由该动作来设定这些属性。 70 |
71 |精灵动作(spriteAction)精灵动作提供了单个动作,这个动作包含属性包括:相对于sprite出现时间的开始时间、结束时间、重复次数等。具体行为可自己设定。公共文件仅提供简单的旋转平移缩放以及渐进渐出等。具体可参见: gui_test3 72 |
73 |WGE (Web Graphics Engine) 是一个基于Web平台的图形引擎。主要使用js, canvas 2d, canvas webgl开发
130 |WGE 目前主要定位为一个简单易用,快速上手,并能够加快web应用开发的框架库。(For study only)
131 |webgl版:
139 |demo列表: canvas-webgl demos
140 | 141 |其实文档还没写呢
4 | 返回首页 -------------------------------------------------------------------------------- /res/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/0.jpg -------------------------------------------------------------------------------- /res/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/1.jpg -------------------------------------------------------------------------------- /res/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/10.jpg -------------------------------------------------------------------------------- /res/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/11.jpg -------------------------------------------------------------------------------- /res/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/12.jpg -------------------------------------------------------------------------------- /res/13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/13.jpg -------------------------------------------------------------------------------- /res/14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/14.jpg -------------------------------------------------------------------------------- /res/15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/15.jpg -------------------------------------------------------------------------------- /res/16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/16.jpg -------------------------------------------------------------------------------- /res/17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/17.jpg -------------------------------------------------------------------------------- /res/18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/18.jpg -------------------------------------------------------------------------------- /res/19.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/19.jpg -------------------------------------------------------------------------------- /res/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/2.jpg -------------------------------------------------------------------------------- /res/20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/20.jpg -------------------------------------------------------------------------------- /res/21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/21.jpg -------------------------------------------------------------------------------- /res/22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/22.jpg -------------------------------------------------------------------------------- /res/23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/23.jpg -------------------------------------------------------------------------------- /res/24.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/24.jpg -------------------------------------------------------------------------------- /res/25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/25.jpg -------------------------------------------------------------------------------- /res/26.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/26.jpg -------------------------------------------------------------------------------- /res/27.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/27.jpg -------------------------------------------------------------------------------- /res/28.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/28.jpg -------------------------------------------------------------------------------- /res/29.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/29.jpg -------------------------------------------------------------------------------- /res/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/3.jpg -------------------------------------------------------------------------------- /res/30.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/30.jpg -------------------------------------------------------------------------------- /res/31.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/31.jpg -------------------------------------------------------------------------------- /res/32.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/32.jpg -------------------------------------------------------------------------------- /res/33.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/33.jpg -------------------------------------------------------------------------------- /res/34.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/34.jpg -------------------------------------------------------------------------------- /res/35.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/35.jpg -------------------------------------------------------------------------------- /res/36.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/36.jpg -------------------------------------------------------------------------------- /res/37.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/37.jpg -------------------------------------------------------------------------------- /res/38.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/38.jpg -------------------------------------------------------------------------------- /res/39.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/39.jpg -------------------------------------------------------------------------------- /res/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/4.jpg -------------------------------------------------------------------------------- /res/40.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/40.jpg -------------------------------------------------------------------------------- /res/41.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/41.jpg -------------------------------------------------------------------------------- /res/42.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/42.jpg -------------------------------------------------------------------------------- /res/43.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/43.jpg -------------------------------------------------------------------------------- /res/44.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/44.jpg -------------------------------------------------------------------------------- /res/45.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/45.jpg -------------------------------------------------------------------------------- /res/46.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/46.jpg -------------------------------------------------------------------------------- /res/47.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/47.jpg -------------------------------------------------------------------------------- /res/48.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/48.jpg -------------------------------------------------------------------------------- /res/49.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/49.jpg -------------------------------------------------------------------------------- /res/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/5.jpg -------------------------------------------------------------------------------- /res/50.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/50.jpg -------------------------------------------------------------------------------- /res/51.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/51.jpg -------------------------------------------------------------------------------- /res/52.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/52.jpg -------------------------------------------------------------------------------- /res/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/6.jpg -------------------------------------------------------------------------------- /res/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/7.jpg -------------------------------------------------------------------------------- /res/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/8.jpg -------------------------------------------------------------------------------- /res/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/9.jpg -------------------------------------------------------------------------------- /res/arc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/arc.jpg -------------------------------------------------------------------------------- /res/box/a1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/a1.jpg -------------------------------------------------------------------------------- /res/box/a2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/a2.jpg -------------------------------------------------------------------------------- /res/box/a3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/a3.jpg -------------------------------------------------------------------------------- /res/box/a4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/a4.jpg -------------------------------------------------------------------------------- /res/box/bridge_negx.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/bridge_negx.jpg -------------------------------------------------------------------------------- /res/box/bridge_negy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/bridge_negy.jpg -------------------------------------------------------------------------------- /res/box/bridge_negz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/bridge_negz.jpg -------------------------------------------------------------------------------- /res/box/bridge_posx.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/bridge_posx.jpg -------------------------------------------------------------------------------- /res/box/bridge_posy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/bridge_posy.jpg -------------------------------------------------------------------------------- /res/box/bridge_posz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/bridge_posz.jpg -------------------------------------------------------------------------------- /res/box/bump.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/bump.jpg -------------------------------------------------------------------------------- /res/box/bump2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/bump2.jpg -------------------------------------------------------------------------------- /res/box/mountain_neg_x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/mountain_neg_x.jpg -------------------------------------------------------------------------------- /res/box/mountain_neg_y.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/mountain_neg_y.jpg -------------------------------------------------------------------------------- /res/box/mountain_neg_z.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/mountain_neg_z.jpg -------------------------------------------------------------------------------- /res/box/mountain_pos_x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/mountain_pos_x.jpg -------------------------------------------------------------------------------- /res/box/mountain_pos_y.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/mountain_pos_y.jpg -------------------------------------------------------------------------------- /res/box/mountain_pos_z.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/mountain_pos_z.jpg -------------------------------------------------------------------------------- /res/box/skycubemap_back.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/skycubemap_back.jpg -------------------------------------------------------------------------------- /res/box/skycubemap_down.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/skycubemap_down.jpg -------------------------------------------------------------------------------- /res/box/skycubemap_down_cube.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/skycubemap_down_cube.jpg -------------------------------------------------------------------------------- /res/box/skycubemap_front.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/skycubemap_front.jpg -------------------------------------------------------------------------------- /res/box/skycubemap_left.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/skycubemap_left.jpg -------------------------------------------------------------------------------- /res/box/skycubemap_right.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/skycubemap_right.jpg -------------------------------------------------------------------------------- /res/box/skycubemap_up.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/skycubemap_up.jpg -------------------------------------------------------------------------------- /res/box/skycubemap_up_cube.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/box/skycubemap_up_cube.jpg -------------------------------------------------------------------------------- /res/comic0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic0.jpg -------------------------------------------------------------------------------- /res/comic1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic1.jpg -------------------------------------------------------------------------------- /res/comic10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic10.jpg -------------------------------------------------------------------------------- /res/comic11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic11.jpg -------------------------------------------------------------------------------- /res/comic12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic12.jpg -------------------------------------------------------------------------------- /res/comic13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic13.jpg -------------------------------------------------------------------------------- /res/comic14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic14.jpg -------------------------------------------------------------------------------- /res/comic15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic15.jpg -------------------------------------------------------------------------------- /res/comic16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic16.jpg -------------------------------------------------------------------------------- /res/comic2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic2.jpg -------------------------------------------------------------------------------- /res/comic3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic3.jpg -------------------------------------------------------------------------------- /res/comic4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic4.jpg -------------------------------------------------------------------------------- /res/comic5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic5.jpg -------------------------------------------------------------------------------- /res/comic6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic6.jpg -------------------------------------------------------------------------------- /res/comic7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic7.jpg -------------------------------------------------------------------------------- /res/comic8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic8.jpg -------------------------------------------------------------------------------- /res/comic9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/comic9.jpg -------------------------------------------------------------------------------- /res/face.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/face.jpg -------------------------------------------------------------------------------- /res/face2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/face2.jpg -------------------------------------------------------------------------------- /res/maskFace.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/maskFace.jpg -------------------------------------------------------------------------------- /res/materials/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/materials/0.jpg -------------------------------------------------------------------------------- /res/materials/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/materials/1.jpg -------------------------------------------------------------------------------- /res/materials/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/materials/2.jpg -------------------------------------------------------------------------------- /res/materials/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/materials/3.jpg -------------------------------------------------------------------------------- /res/materials/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/materials/4.jpg -------------------------------------------------------------------------------- /res/materials/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/materials/5.jpg -------------------------------------------------------------------------------- /res/materials/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/materials/6.jpg -------------------------------------------------------------------------------- /res/png/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/0.png -------------------------------------------------------------------------------- /res/png/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/1.png -------------------------------------------------------------------------------- /res/png/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/10.png -------------------------------------------------------------------------------- /res/png/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/11.png -------------------------------------------------------------------------------- /res/png/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/12.png -------------------------------------------------------------------------------- /res/png/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/13.png -------------------------------------------------------------------------------- /res/png/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/2.png -------------------------------------------------------------------------------- /res/png/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/3.png -------------------------------------------------------------------------------- /res/png/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/4.png -------------------------------------------------------------------------------- /res/png/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/5.png -------------------------------------------------------------------------------- /res/png/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/6.png -------------------------------------------------------------------------------- /res/png/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/7.png -------------------------------------------------------------------------------- /res/png/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/8.png -------------------------------------------------------------------------------- /res/png/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/png/9.png -------------------------------------------------------------------------------- /res/snd1.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/snd1.mp3 -------------------------------------------------------------------------------- /res/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/test.jpg -------------------------------------------------------------------------------- /res/test2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/test2.jpg -------------------------------------------------------------------------------- /res/video/1.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/res/video/1.mp4 -------------------------------------------------------------------------------- /screenshots/2d_gui_test2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/screenshots/2d_gui_test2.jpg -------------------------------------------------------------------------------- /screenshots/cube_map_reflect.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/screenshots/cube_map_reflect.jpg -------------------------------------------------------------------------------- /screenshots/cube_map_refract.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/screenshots/cube_map_refract.jpg -------------------------------------------------------------------------------- /screenshots/teapot_perpixel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/screenshots/teapot_perpixel.jpg -------------------------------------------------------------------------------- /screenshots/webgl_gui_test1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/screenshots/webgl_gui_test1.jpg -------------------------------------------------------------------------------- /screenshots/webgl_gui_test2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/screenshots/webgl_gui_test2.jpg -------------------------------------------------------------------------------- /screenshots/webgl_gui_test3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/screenshots/webgl_gui_test3.jpg -------------------------------------------------------------------------------- /screenshots/webgl_gui_test4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wysaid/wge/045fa24caa78be5b82f61ed988555632198ad494/screenshots/webgl_gui_test4.jpg -------------------------------------------------------------------------------- /tools/code_format.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |使用WebGL实现的简单引擎
9 |左键点击左侧demo栏直接查看demo。也可以右键用新标签页打开,全屏查看demo
10 | 11 | 12 | -------------------------------------------------------------------------------- /webgl/demos/README.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |使用WebGL实现的简单封装
9 |左键点击左侧demo栏直接查看demo。也可以右键用新标签页打开,全屏查看demo
10 | 11 | 12 | -------------------------------------------------------------------------------- /webgl/demos/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |