Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt demo to WebGL (GLES 3) #225

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 5 additions & 58 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,60 +1,7 @@
.DS_Store
doc/index.html

*.pbxuser
*.perspectivev3
xcshareddata
xcuserdata
project.xcworkspace
DerivedData
build
Chipmunk-Mac
Chipmunk-iOS
ObjectiveChipmunk-Mac
ObjectiveChipmunk-iOS
generated_docs

CMakeCache.txt
CMakeFiles
Makefile
cmake_install.cmake
install_manifest.txt

*.o
*.obj
*.dll
*.so
*.so.*
*.dylib
*.a
Build/
imgui.ini
obj/
*.wdat
*.exe
*.lib
chipmunk_demos

# Visual studio
*.opensdf
*.opendb
*.sdf
*.suo
*.pdb
*.vcxproj.user
msvc/vc10/demo/ipch/
msvc/vc10/chipmunk/Win32/
msvc/vc10/chipmunk/x64/
msvc/vc10/demo/Win32/
msvc/vc10/demo/x64/
msvc/vc12/chipmunk/Win32/
msvc/vc12/chipmunk/x64/
msvc/vc12/demo/Win32/
msvc/vc12/demo/x64/
msvc/vc13/chipmunk/Win32/
msvc/vc13/chipmunk/x64/
msvc/vc13/demo/Win32/
msvc/vc13/demo/x64/
msvc/vc14/demo/Win32/
msvc/vc14/demo/x64/
*.log
*.tlog
*.db

.vscode
_out/
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Chipmunk2D

## Test the demo live under WebGL2:
## [![Screen Shot](WebGL/Chipmunk.png)](https://cwc-lib.github.io/Chipmunk2D/WebGL/Web_Emsc_Default_OS/App)

## How to build
-Grab the last [Cwc](https://github.com/VLiance/Cwc/releases) Release

-Open the executable, the first use it will asscociate **.cwMake** files. *The menu "Config/Set cwc" do the same thing.*

-Download this repo. Some **.cwMake** is avalaible under the cwc folder. Double click on it, the *Toolchains* and *Libs* will be automatically downloaded, then compiled.

***
66 changes: 0 additions & 66 deletions README.textile

This file was deleted.

Binary file added WebGL/Chipmunk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions WebGL/Web_Emsc_Default_OS/App.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctypehtml><html lang=en-us><head><meta charset=utf-8><meta content="text/html; charset=utf-8"http-equiv=Content-Type><link href=# rel="shortcut icon"><link href=Shell_Common.css rel=stylesheet><style></style></head><body><div id=Title><div id=TitleText><h1><script>document.title=location.pathname.substring(location.pathname.lastIndexOf("/")+1).replace(".html",""),document.write(document.title)</script></h1></div></div><nav id=main-nav><ul id=main-menu><li><a onclick=Module.requestFullScreen(!1,!0) style=cursor:pointer title=WebGL>Fullscreen</a></li><li><div id=SrcLink></div><script>function SetLinkSrcCode(n){document.getElementById("SrcLink").innerHTML=n}</script></li></ul></nav><div id=FpsDiv></div><div id=outputContainer><div id=sandbox>Console Loading...</div><script id=tplSandbox type=text/template><div id="outputInc">
<pre class="output"></pre>
</div>

<div class="input">
<textarea rows="1" placeholder="<%= placeholder %>"></textarea>
</div></script><script id=tplCommand type=text/template><% if (! _hidden) { %><span class="command"><span class="<%= _class %>"><%= command %></span></span><% } %></script></div><div id=emscriptenCont><div class=emscripten><progress hidden id=progress max=100 value=0></progress><div class=emscripten_border><div id=status class=emscripten>Downloading...</div><div id=spinner class=spinner></div><canvas class=emscripten height=600 id=canvas oncontextmenu=event.preventDefault() width=800></canvas></div></div></div><script src=Shell_Common.js></script><script>window.onload=Shell_OnLoad</script><script src=App.js async></script></body></html>
17 changes: 17 additions & 0 deletions WebGL/Web_Emsc_Default_OS/App.js

Large diffs are not rendered by default.

Loading