00001 #ifndef __domGles_sampler_h__ 00002 #define __domGles_sampler_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domGles_sampler_states.h> 00009 #include <dom/domInstance_image.h> 00010 class DAE; 00011 00016 class domGles_sampler : public daeElement 00017 { 00018 public: 00019 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_SAMPLER; } 00020 static daeInt ID() { return 268; } 00021 virtual daeInt typeID() const { return ID(); } 00022 public: 00023 class domTexcoord; 00024 00025 typedef daeSmartRef<domTexcoord> domTexcoordRef; 00026 typedef daeTArray<domTexcoordRef> domTexcoord_Array; 00027 00028 class domTexcoord : public daeElement 00029 { 00030 public: 00031 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXCOORD; } 00032 static daeInt ID() { return 269; } 00033 virtual daeInt typeID() const { return ID(); } 00034 protected: // Attribute 00035 xsNCName attrSemantic; 00036 00037 00038 public: //Accessors and Mutators 00043 xsNCName getSemantic() const { return attrSemantic; } 00048 void setSemantic( xsNCName atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; _validAttributeArray[0] = true; } 00049 00050 protected: 00054 domTexcoord(DAE& dae) : daeElement(dae), attrSemantic() {} 00058 virtual ~domTexcoord() {} 00062 virtual domTexcoord &operator=( const domTexcoord &cpy ) { (void)cpy; return *this; } 00063 00064 public: // STATIC METHODS 00069 static DLLSPEC daeElementRef create(DAE& dae); 00075 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00076 }; 00077 00078 00079 00080 protected: // Elements 00081 domInstance_imageRef elemInstance_image; 00082 domTexcoordRef elemTexcoord; 00083 domGles_sampler_statesRef elemGles_sampler_states; 00084 00085 public: //Accessors and Mutators 00090 const domInstance_imageRef getInstance_image() const { return elemInstance_image; } 00095 const domTexcoordRef getTexcoord() const { return elemTexcoord; } 00100 const domGles_sampler_statesRef getGles_sampler_states() const { return elemGles_sampler_states; } 00101 protected: 00105 domGles_sampler(DAE& dae) : daeElement(dae), elemInstance_image(), elemTexcoord(), elemGles_sampler_states() {} 00109 virtual ~domGles_sampler() {} 00113 virtual domGles_sampler &operator=( const domGles_sampler &cpy ) { (void)cpy; return *this; } 00114 00115 public: // STATIC METHODS 00120 static DLLSPEC daeElementRef create(DAE& dae); 00126 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00127 }; 00128 00129 00130 #endif