diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-10-06 11:50:27 +0000 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-10-06 16:49:51 +0200 |
commit | eee97c048f9cdc1cc05d6a516a3da56a13accd64 (patch) | |
tree | 019e374beaed56be3cbeaff3cf202d41ee427d96 /1.4.0/dom/codeGen/1.5/tpl/tpl-constants-cpp.php |
Initial import
Diffstat (limited to '1.4.0/dom/codeGen/1.5/tpl/tpl-constants-cpp.php')
-rw-r--r-- | 1.4.0/dom/codeGen/1.5/tpl/tpl-constants-cpp.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/1.4.0/dom/codeGen/1.5/tpl/tpl-constants-cpp.php b/1.4.0/dom/codeGen/1.5/tpl/tpl-constants-cpp.php new file mode 100644 index 0000000..30d113d --- /dev/null +++ b/1.4.0/dom/codeGen/1.5/tpl/tpl-constants-cpp.php @@ -0,0 +1,36 @@ +<?php +/* +* Copyright 2006 Sony Computer Entertainment Inc. +* +* Licensed under the MIT Open Source License, for details please see license.txt or the website +* http://www.opensource.org/licenses/mit-license.php +* +*/ + +if ( $_globals['copyright'] ) { +print $_globals['copyright_text']; +} +?> +#include <dom/domConstants.h> + +<?php + foreach ($bag as $name => $val ) { + if ( is_int($name) ) { + print $val; + continue; + } + print "DLLSPEC daeString ". $name ." = ". $val; + } + print "\n"; + + foreach ($_globals['elementTypes'] as $num => $val ) + { + print "DLLSPEC daeString COLLADA_TYPE_". getUniqueName($val, $_globals['elementTypes']) ." = \"". $val ."\";\n"; + } + print "\n"; + + foreach ($_globals['elementNames'] as $num => $val ) + { + print "DLLSPEC daeString COLLADA_ELEMENT_". getUniqueName($val, $_globals['elementNames']) ." = \"". $val ."\";\n"; + } +?> |