x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
domProfile_GLSL.cpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\DarkPuzzle\libs\bullet_sdk\Extras\COLLADA_DOM\src\1.4\dom\domProfile_GLSL.cpp
旋转
特效
属性
历史版本
/* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the License at: * http://research.scea.com/scea_shared_source_license.html * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing permissions and limitations under the * License. */ #include
#include
#include
#include
#include
#include
#include
#include
daeElementRef domProfile_GLSL::create(daeInt bytes) { domProfile_GLSLRef ref = new(bytes) domProfile_GLSL; return ref; } daeMetaElement * domProfile_GLSL::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "profile_GLSL" ); _Meta->registerClass(domProfile_GLSL::create, &_Meta); daeMetaCMPolicy *cm = NULL; daeMetaElementAttribute *mea = NULL; cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); mea->setName( "asset" ); mea->setOffset( daeOffsetOf(domProfile_GLSL,elemAsset) ); mea->setElementType( domAsset::registerElement() ); cm->appendChild( mea ); cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "code" ); mea->setOffset( daeOffsetOf(domProfile_GLSL,elemCode_array) ); mea->setElementType( domFx_code_profile::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "include" ); mea->setOffset( daeOffsetOf(domProfile_GLSL,elemInclude_array) ); mea->setElementType( domFx_include_common::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 0 ); cm->getParent()->appendChild( cm ); cm = cm->getParent(); cm = new daeMetaChoice( _Meta, cm, 3002, 0, -1 ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "image" ); mea->setOffset( daeOffsetOf(domProfile_GLSL,elemImage_array) ); mea->setElementType( domImage::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "newparam" ); mea->setOffset( daeOffsetOf(domProfile_GLSL,elemNewparam_array) ); mea->setElementType( domGlsl_newparam::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 0 ); cm->getParent()->appendChild( cm ); cm = cm->getParent(); mea = new daeMetaElementArrayAttribute( _Meta, cm, 6003, 1, -1 ); mea->setName( "technique" ); mea->setOffset( daeOffsetOf(domProfile_GLSL,elemTechnique_array) ); mea->setElementType( domProfile_GLSL::domTechnique::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 6004, 0, -1 ); mea->setName( "extra" ); mea->setOffset( daeOffsetOf(domProfile_GLSL,elemExtra_array) ); mea->setElementType( domExtra::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 6004 ); _Meta->setCMRoot( cm ); // Ordered list of sub-elements _Meta->addContents(daeOffsetOf(domProfile_GLSL,_contents)); _Meta->addContentsOrder(daeOffsetOf(domProfile_GLSL,_contentsOrder)); // Add attribute: id { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "id" ); ma->setType( daeAtomicType::get("xsID")); ma->setOffset( daeOffsetOf( domProfile_GLSL , attrId )); ma->setContainer( _Meta ); ma->setIsRequired( false ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::create(daeInt bytes) { domProfile_GLSL::domTechniqueRef ref = new(bytes) domProfile_GLSL::domTechnique; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "technique" ); _Meta->registerClass(domProfile_GLSL::domTechnique::create, &_Meta); _Meta->setIsInnerClass( true ); daeMetaCMPolicy *cm = NULL; daeMetaElementAttribute *mea = NULL; cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); mea->setName( "annotate" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemAnnotate_array) ); mea->setElementType( domFx_annotate_common::registerElement() ); cm->appendChild( mea ); cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "code" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemCode_array) ); mea->setElementType( domFx_code_profile::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "include" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemInclude_array) ); mea->setElementType( domFx_include_common::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 0 ); cm->getParent()->appendChild( cm ); cm = cm->getParent(); cm = new daeMetaChoice( _Meta, cm, 3002, 0, -1 ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "image" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemImage_array) ); mea->setElementType( domImage::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "newparam" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemNewparam_array) ); mea->setElementType( domGlsl_newparam::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "setparam" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemSetparam_array) ); mea->setElementType( domGlsl_setparam::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 0 ); cm->getParent()->appendChild( cm ); cm = cm->getParent(); mea = new daeMetaElementArrayAttribute( _Meta, cm, 6003, 1, -1 ); mea->setName( "pass" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemPass_array) ); mea->setElementType( domProfile_GLSL::domTechnique::domPass::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 6004, 0, -1 ); mea->setName( "extra" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemExtra_array) ); mea->setElementType( domExtra::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 6004 ); _Meta->setCMRoot( cm ); // Ordered list of sub-elements _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique,_contents)); _Meta->addContentsOrder(daeOffsetOf(domProfile_GLSL::domTechnique,_contentsOrder)); // Add attribute: id { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "id" ); ma->setType( daeAtomicType::get("xsID")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique , attrId )); ma->setContainer( _Meta ); _Meta->appendAttribute(ma); } // Add attribute: sid { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "sid" ); ma->setType( daeAtomicType::get("xsNCName")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique , attrSid )); ma->setContainer( _Meta ); ma->setIsRequired( true ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::domPass::create(daeInt bytes) { domProfile_GLSL::domTechnique::domPassRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::domPass::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "pass" ); _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::create, &_Meta); _Meta->setIsInnerClass( true ); daeMetaCMPolicy *cm = NULL; daeMetaElementAttribute *mea = NULL; cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); mea->setName( "annotate" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemAnnotate_array) ); mea->setElementType( domFx_annotate_common::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); mea->setName( "color_target" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemColor_target_array) ); mea->setElementType( domFx_colortarget_common::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); mea->setName( "depth_target" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDepth_target_array) ); mea->setElementType( domFx_depthtarget_common::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); mea->setName( "stencil_target" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemStencil_target_array) ); mea->setElementType( domFx_stenciltarget_common::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); mea->setName( "color_clear" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemColor_clear_array) ); mea->setElementType( domFx_clearcolor_common::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 0, -1 ); mea->setName( "depth_clear" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDepth_clear_array) ); mea->setElementType( domFx_cleardepth_common::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 6, 0, -1 ); mea->setName( "stencil_clear" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemStencil_clear_array) ); mea->setElementType( domFx_clearstencil_common::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); mea->setName( "draw" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDraw) ); mea->setElementType( domProfile_GLSL::domTechnique::domPass::domDraw::registerElement() ); cm->appendChild( mea ); cm = new daeMetaChoice( _Meta, cm, 8, 1, -1 ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "gl_pipeline_settings" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemGl_pipeline_settings_array) ); mea->setElementType( domGl_pipeline_settings::registerElement() ); cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "shader" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemShader_array) ); mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 0 ); cm->getParent()->appendChild( cm ); cm = cm->getParent(); mea = new daeMetaElementArrayAttribute( _Meta, cm, 3009, 0, -1 ); mea->setName( "extra" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemExtra_array) ); mea->setElementType( domExtra::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 3009 ); _Meta->setCMRoot( cm ); // Ordered list of sub-elements _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique::domPass,_contents)); _Meta->addContentsOrder(daeOffsetOf(domProfile_GLSL::domTechnique::domPass,_contentsOrder)); // Add attribute: sid { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "sid" ); ma->setType( daeAtomicType::get("xsNCName")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass , attrSid )); ma->setContainer( _Meta ); ma->setIsRequired( false ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::domPass::domDraw::create(daeInt bytes) { domProfile_GLSL::domTechnique::domPass::domDrawRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domDraw; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::domPass::domDraw::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "draw" ); _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domDraw::create, &_Meta); _Meta->setIsInnerClass( true ); // Add attribute: _value { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "_value" ); ma->setType( daeAtomicType::get("Fx_draw_common")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domDraw , _value )); ma->setContainer( _Meta ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domDraw)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::domPass::domShader::create(daeInt bytes) { domProfile_GLSL::domTechnique::domPass::domShaderRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "shader" ); _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::create, &_Meta); _Meta->setIsInnerClass( true ); daeMetaCMPolicy *cm = NULL; daeMetaElementAttribute *mea = NULL; cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); mea->setName( "annotate" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemAnnotate_array) ); mea->setElementType( domFx_annotate_common::registerElement() ); cm->appendChild( mea ); cm = new daeMetaSequence( _Meta, cm, 1, 0, 1 ); mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "compiler_target" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemCompiler_target) ); mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); mea->setName( "compiler_options" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemCompiler_options) ); mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 1 ); cm->getParent()->appendChild( cm ); cm = cm->getParent(); mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); mea->setName( "name" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemName) ); mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domName::registerElement() ); cm->appendChild( mea ); mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); mea->setName( "bind" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemBind_array) ); mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domBind::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 4 ); _Meta->setCMRoot( cm ); // Add attribute: stage { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "stage" ); ma->setType( daeAtomicType::get("Glsl_pipeline_stage")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader , attrStage )); ma->setContainer( _Meta ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::create(daeInt bytes) { domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_targetRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "compiler_target" ); _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::create, &_Meta); _Meta->setIsInnerClass( true ); // Add attribute: _value { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "_value" ); ma->setType( daeAtomicType::get("xsNMTOKEN")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target , _value )); ma->setContainer( _Meta ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::create(daeInt bytes) { domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_optionsRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "compiler_options" ); _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::create, &_Meta); _Meta->setIsInnerClass( true ); // Add attribute: _value { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "_value" ); ma->setType( daeAtomicType::get("xsString")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options , _value )); ma->setContainer( _Meta ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::domPass::domShader::domName::create(daeInt bytes) { domProfile_GLSL::domTechnique::domPass::domShader::domNameRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domName; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domName::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "name" ); _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domName::create, &_Meta); _Meta->setIsInnerClass( true ); // Add attribute: _value { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "_value" ); ma->setType( daeAtomicType::get("xsNCName")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domName , _value )); ma->setContainer( _Meta ); _Meta->appendAttribute(ma); } // Add attribute: source { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "source" ); ma->setType( daeAtomicType::get("xsNCName")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domName , attrSource )); ma->setContainer( _Meta ); ma->setIsRequired( false ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domName)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::domPass::domShader::domBind::create(daeInt bytes) { domProfile_GLSL::domTechnique::domPass::domShader::domBindRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domBind; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domBind::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "bind" ); _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domBind::create, &_Meta); _Meta->setIsInnerClass( true ); daeMetaCMPolicy *cm = NULL; daeMetaElementAttribute *mea = NULL; cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "glsl_param_type" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,elemGlsl_param_type) ); mea->setElementType( domGlsl_param_type::registerElement() ); cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); mea->setName( "param" ); mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,elemParam) ); mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::registerElement() ); cm->appendChild( mea ); cm->setMaxOrdinal( 0 ); _Meta->setCMRoot( cm ); // Ordered list of sub-elements _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,_contents)); _Meta->addContentsOrder(daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,_contentsOrder)); // Add attribute: symbol { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "symbol" ); ma->setType( daeAtomicType::get("xsNCName")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domBind , attrSymbol )); ma->setContainer( _Meta ); ma->setIsRequired( true ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domBind)); _Meta->validate(); return _Meta; } daeElementRef domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::create(daeInt bytes) { domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParamRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam; return ref; } daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::registerElement() { if ( _Meta != NULL ) return _Meta; _Meta = new daeMetaElement; _Meta->setName( "param" ); _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::create, &_Meta); _Meta->setIsInnerClass( true ); // Add attribute: ref { daeMetaAttribute *ma = new daeMetaAttribute; ma->setName( "ref" ); ma->setType( daeAtomicType::get("xsString")); ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam , attrRef )); ma->setContainer( _Meta ); ma->setIsRequired( true ); _Meta->appendAttribute(ma); } _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam)); _Meta->validate(); return _Meta; } daeMetaElement * domProfile_GLSL::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::domPass::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::domPass::domDraw::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domName::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domBind::_Meta = NULL; daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::_Meta = NULL;
domProfile_GLSL.cpp
网页地址
文件地址
上一页
150/172
下一页
下载
( 24 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.