4 Commits

Author SHA1 Message Date
badlogic
4fe53ac856 [webgl] Refactored WebGL demos. They reuse a preallocated set of canvases to limit the number of WebGL contexts required. At most 3 canvases can be visible at a time, so we preallocate 3 canvases, then dynamically attach them to placeholder divs based on their visibility. I'm a juggalo. 2017-09-14 15:47:51 +02:00
badlogic
ff1a81bab3 [webgl] Refactored demos to use preallocated canvas & context 2017-09-14 12:15:23 +02:00
NathanSweet
b597aac9b9 [ts] Minor demo updates.
- Loading screen is never shown if demo loads completely while offscreen.
- HTML charset specified.
- Tabs, not spaces, you filthy animals. Each unminified JS reduced by ~80kb.
- Clean up.
2016-09-13 23:18:49 +02:00
NathanSweet
4a2ba83aa4 [ts] Demo refactoring. 2016-09-06 12:46:25 +02:00