Skip to content

Commit

Permalink
Add glMatrix to third_party.
Browse files Browse the repository at this point in the history
Some of our web tests and demos will make use of this library, and it's
useful to leverage a local copy instead of a CDN during development.
  • Loading branch information
prideout committed Oct 17, 2018
1 parent 920cc7a commit d15e275
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/filamentjs/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
ROOT_DIR = os.path.realpath(SCRIPT_DIR + "/../../../")
BUILD_DIR = ROOT_DIR + "/out/cmake-webgl-release"
SERVE_DIR = BUILD_DIR + "/libs/filamentjs"
GLMATRIX_DIR = ROOT_DIR + "/third_party/gl-matrix"
PORT = 8000

# Copy assets used for testing into the server folder.

src_assets = (
glob.glob(BUILD_DIR + "/samples/web/public/material/*") +
glob.glob(BUILD_DIR + "/samples/web/public/monkey/*") +
glob.glob(GLMATRIX_DIR + "/*.js") +
glob.glob(SCRIPT_DIR + "/testwasm.*"))

for src in src_assets:
Expand Down
19 changes: 19 additions & 0 deletions third_party/gl-matrix/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2015-2018, Brandon Jones, Colin MacKenzie IV.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
1 change: 1 addition & 0 deletions third_party/gl-matrix/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.8.1
28 changes: 28 additions & 0 deletions third_party/gl-matrix/gl-matrix-min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions third_party/gl-matrix/tnt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This is [glMatrix](http://glmatrix.net/) from [toji](https://github.com/toji), a small but
well designed JavaScript library for vector math.

curl \
-O https://unpkg.com/[email protected]/dist/gl-matrix-min.js \
-O https://unpkg.com/[email protected]/LICENSE.md \
-O https://unpkg.com/[email protected]/VERSION

0 comments on commit d15e275

Please sign in to comment.