webgl-3d-animation
Version:
Interactive 3D animation using WebGL showing a 2D predator prey ecology on a grid which is real-time mapped onto the surface of a 3D torus. node.js server side gives access to WAV format files which are rendered using Web Audio API
55 lines (25 loc) • 888 B
JavaScript
var persistance_handler = function() {
;
var object_handle = {}; // holds all the various flavors of graphic object types
var animals_persistance = "animals_persistance";
object_handle[animals_persistance] = {};
var all_object_labels = [];
all_object_labels.push(animals_persistance);
// ----------------------------------------
var get_object_handle = function() {
return object_handle;
}
var get_all_object_labels = function() {
return all_object_labels;
}
// function entry_point(flavor_checkbox, cb) {
function entry_point() {
// webgl_3d_animation.ui_events_entry_point(flavor_checkbox, cb.checked);
// console.log("Hello Corinde in mongo db land");
}
return {
entry_point: entry_point,
get_object_handle : get_object_handle,
get_all_object_labels : get_all_object_labels
};
}(); // persistance_handler