/*
* 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
*
*/
#ifndef __domGl_pipeline_settings_h__
#define __domGl_pipeline_settings_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domGl_hook_abstract.h>
#include <dom/domGl_sampler1D.h>
#include <dom/domGl_sampler2D.h>
#include <dom/domGl_sampler3D.h>
#include <dom/domGl_samplerCUBE.h>
#include <dom/domGl_samplerRECT.h>
#include <dom/domGl_samplerDEPTH.h>
class DAE;
/**
* A group that defines all of the renderstates used for the CG and GLSL profiles.
*/
class domGl_pipeline_settings : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_PIPELINE_SETTINGS; }
static daeInt ID() { return 218; }
virtual daeInt typeID() const { return ID(); }
public:
class domAlpha_func;
typedef daeSmartRef<domAlpha_func> domAlpha_funcRef;
typedef daeTArray<domAlpha_funcRef> domAlpha_func_Array;
class domAlpha_func : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALPHA_FUNC; }
static daeInt ID() { return 219; }
virtual daeInt typeID() const { return ID(); }
public:
class domFunc;
typedef daeSmartRef<domFunc> domFuncRef;
typedef daeTArray<domFuncRef> domFunc_Array;
class domFunc : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FUNC; }
static daeInt ID() { return 220; }
virtual daeInt typeID() const { return ID(); }
protected: // Attributes
domGl_func_type attrValue;
xsNCName attrParam;
public: //Accessors and Mutators
/**
* Gets the value attribute.
* @return Returns a domGl_func_type of the value attribute.
*/
domGl_func_type getValue() const { return attrValue; }
/**
* Sets the value attribute.
* @param atValue The new value for the value attribute.
*/
void setValue( domGl_func_type atValue ) { attrValue = atValue; _validAttributeArray[0] = true; }
/**
* Gets the param attribute.
* @return Returns a xsNCName of the param attribute.
*/
xsNCName getParam() const { return attrParam; }
/**
* Sets the param attribute.
* @param atParam The new value for the param attribute.
*/
void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domFunc(DAE& dae) : daeElement(dae), attrValue(), attrParam() {}
/**
* Destructor
*/
virtual ~domFunc() {}
/**
* Overloaded assignment operator
*/
virtual domFunc &operator=( const domFunc &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domValue;
typedef daeSmartRef<domValue> domValueRef;
typedef daeTArray<domValueRef> domValue_Array;
class domValue : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VALUE; }
static daeInt ID() { return 221; }
virtual daeInt typeID() const { return ID(); }
protected: // Attributes
domGl_alpha_value_type attrValue;
xsNCName attrParam;
public: //Accessors and Mutators
/**
* Gets the value attribute.
* @return Returns a domGl_alpha_value_type of the value attribute.
*/
domGl_alpha_value_type getValue() const { return attrValue; }
/**
* Sets the value attribute.
* @param atValue The new value for the value attribute.
*/
void setValue( domGl_alpha_value_type atValue ) { attrValue = atValue; _validAttributeArray[0] = true; }
/**
* Gets the param attribute.
* @return Returns a xsNCName of the param attribute.
*/
xsNCName getParam() const { return attrParam; }
/**
* Sets the param attribute.
* @param atParam The new value for the param attribute.
*/
void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; _validAttributeArray[1] = true; }
protected:
/**
* Constructor
*/
domValue(DAE& dae) : daeElement(dae), attrValue(), attrParam() {}
/**
* Destructor
*/
virtual ~domValue() {}
/**
* Overloaded assignment operator
*/
virtual domValue &operator=( const domValue &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
protected: // Elements
domFuncRef elemFunc;
domValueRef elemValue;
public: //Accessors and Mutators
/**
* Gets the func element.
* @return a daeSmartRef to the func element.
*/
const domFuncRef getFunc() const { return elemFunc; }
/**
* Gets the value element.
* @return a daeSmartRef to the value element.
*/
const domValueRef getValue() const { return elemValue; }
protected:
/**
* Constructor
*/
domAlpha_func(DAE& dae) : daeElement(dae), elemFunc(), elemValue() {}
/**
* Destructor
*/
virtual ~domAlpha_func() {}
/**
* Overloaded assignment operator
*/
virtual domAlpha_func &operator=( const domAlpha_func &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
class domBlend_func;
typedef daeSmartRef<domBlend_func> domBlend_funcRef;
typedef daeTArray<domBlend_funcRef> domBlend_func_Array;
class domBlend_func : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_FUNC; }
static daeInt ID() { return 222; }
virtual daeInt typeID() const { return ID(); }
public:
class domSrc;
typedef daeSmartRef<domSrc> domSrcRef;
typedef daeTArray<domSrcRef> domSrc_Array;
class domSrc : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SRC; }
static daeInt ID() { return 223; }
virtual daeInt typeID() const { return ID(); }
protected: // Attributes
domGl_blend_type attrValue;
xsNCName attrParam;
public: //Accessors and Mutators
/**
* Gets the value attribute.
* @return Returns a domGl_blend_type of the value attribute.
*/
domGl_blend_type getValue() const { return attrValue; }
/**
* Sets the value attribute.
* @param atValue The new value for the value attribute.
*/
void setValue( domGl_bl
评论0
最新资源