mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 07:16:49 +01:00
13 lines
No EOL
762 B
Text
13 lines
No EOL
762 B
Text
function __3dGroup() constructor {
|
|
objects = [];
|
|
|
|
static _submit = function(callback, params = {}, shader = noone) {
|
|
for( var i = 0, n = array_length(objects); i < n; i++ )
|
|
callback(objects[i], params, shader);
|
|
}
|
|
|
|
static submitShader = function(params = {}) { _submit(function(_obj, params) { _obj.submitShader(params); }, params); }
|
|
static submitSel = function(params = {}) { _submit(function(_obj, params) { _obj.submitSel(params); }, params); }
|
|
static submitUI = function(params = {}, shader = noone) { _submit(function(_obj, params, shader) { _obj.submitUI(params, shader); }, params); }
|
|
static submit = function(params = {}, shader = noone) { _submit(function(_obj, params, shader) { _obj.submit(params, shader); }, params); }
|
|
} |