Skip to content

Commit

Permalink
Initial source and docs commit. Nothing works yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Feb 18, 2015
0 parents commit 2fac6ec
Show file tree
Hide file tree
Showing 204 changed files with 110,791 additions and 0 deletions.
14 changes: 14 additions & 0 deletions BANNER
@@ -0,0 +1,14 @@
/*
* <%= pkg.title %> V<%= pkg.version %>
*
* <%= pkg.description %>
* <%= pkg.homepage %>
*
* Built on <%= grunt.template.today("yyyy-mm-dd") %>
*
* <%= pkg.license %>
* Copyright <%= grunt.template.today("yyyy") %>, <%= pkg.author.name %>
* http://xeolabs.com/
*
*/

1 change: 1 addition & 0 deletions CNAME
@@ -0,0 +1 @@
xeoengine.org
183 changes: 183 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,183 @@
/*
XeoEngine - WebGL Scene Graph Engine
Copyright (c) 2015, Lindsay Kay
lindsay.kay@xeolabs.com
All rights reserved.
*/

'use strict';

var jsFiles = [

// API classes (public)

// These files before everything else
'src/xeo.js', // Engine namespace
'src/node.js', // Base node component type

'src/ambientLight.js',
'src/camera.js',
'src/canvas.js',
'src/clip.js',
'src/clips.js',
'src/colorBuf.js',
'src/colorTarget.js',
'src/component.js',
'src/configs.js',
'src/depthBuf.js',
'src/depthTarget.js',
'src/dirLight.js',
'src/visibility.js',
'src/modes.js',
'src/frustum.js',
'src/geometry.js',
'src/helloWorld.js',
'src/input.js',
'src/layer.js',
'src/lights.js',
'src/lookat.js',
'src/matrix.js',
'src/material.js',
'src/morphGeometry.js',
'src/name.js',
'src/gameObject.js',
'src/ortho.js',
'src/perspective.js',
'src/pointLight.js',
'src/scene.js',
'src/shader.js',
'src/shaderParams.js',
'src/stage.js',
'src/stats.js',
'src/tag.js',
'src/task.js',
'src/tasks.js',
'src/texture.js',

// Utilities (private)

'src/utils/map.js',

// Math library (public)

'src/math/math.js',

// WebGL wrappers (private)

'src/webgl/webgl.js',
'src/webgl/arrayBuffer.js',
'src/webgl/attribute.js',
'src/webgl/program.js',
'src/webgl/renderBuffer.js',
'src/webgl/sampler.js',
'src/webgl/texture2d.js',
'src/webgl/uniform.js',

// Renderer (private)

'src/renderer/renderer.js'
//...

];


module.exports = function (grunt) {

grunt.initConfig({

pkg: grunt.file.readJSON('package.json'),
build_dir: 'build/<%= pkg.name %>.js',
release_dir: "build",
license: grunt.file.read("LICENSE.txt"),

concat: {
options: {
banner: grunt.file.read('BANNER'),
separator: ';'
},
dist: {
src: jsFiles,
dest: 'build/<%= pkg.name %>.js'
}
},

uglify: {
options: {
report: "min",
banner: grunt.file.read('BANNER')
},
build: {
src: 'build/<%= pkg.name %>.js',
dest: 'build/<%= pkg.name %>.min.js'
}
},

jshint: {
options: {
eqeqeq: true,
undef: true,
unused: true,
strict: true,
indent: 2,
immed: true,
newcap: true,
nonew: true,
trailing: true
},
grunt: {
src: "Gruntfile.js",
options: {
node: true
}
},
scripts: {
options: {
browser: true,
globals: {
XEO: true,
alert: true,
console: true
}
},
src: jsFiles
}
},

clean: {
tmp: "tmp/*.js",
docs: ["docs/*"]
},

qunit: {
all: ["test/*.html"]
},

yuidoc: {
all: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
paths: ['src/core/', 'src/math'],
outdir: './docs/'
},
logo: '../files/logo.png'
}
}
});

grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-qunit");
grunt.loadNpmTasks("grunt-contrib-yuidoc");

grunt.registerTask("compile", ["clean", "concat", "uglify"]);
grunt.registerTask("build", ["test", "compile"]);
grunt.registerTask("test", ["jshint", "qunit"]);
grunt.registerTask("docs", ["clean", "yuidoc"]);
grunt.registerTask("default", "test");
grunt.registerTask("all", ["build", "docs"]);
};
25 changes: 25 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,25 @@
// === SceneJS ===
// JavaScript Scene graph library for WebGL
// Copyright (c) 2010 Lindsay Kay
//
// 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.




25 changes: 25 additions & 0 deletions bower.json
@@ -0,0 +1,25 @@
{
"name": "xeoengine",
"version": "0.0.1",
"homepage": "http://xeoengine.org/",
"description": "A WebGL-based 3D Engine from XeoLabs",
"main": "build/xeoengine.js",
"keywords": [
"xeo",
"xeoengine",
"xeolabs",
"3D",
"webgl"
],
"license": "MIT",
"ignore": [
"**/.*",
"*.md",
"docs",
"examples",
"src",
"test",
"utils",
"LICENSE"
]
}

0 comments on commit 2fac6ec

Please sign in to comment.