domGl_sampler1D.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Copyright 2006 Sony Computer Entertainment Inc.
  3. *
  4. * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
  5. * file except in compliance with the License. You may obtain a copy of the License at:
  6. * http://research.scea.com/scea_shared_source_license.html
  7. *
  8. * Unless required by applicable law or agreed to in writing, software distributed under the License
  9. * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  10. * implied. See the License for the specific language governing permissions and limitations under the
  11. * License.
  12. */
  13. #ifndef __domGl_sampler1D_h__
  14. #define __domGl_sampler1D_h__
  15. #include <dae/daeDocument.h>
  16. #include <dom/domTypes.h>
  17. #include <dom/domElements.h>
  18. #include <dom/domFx_sampler1D_common.h>
  19. class DAE;
  20. /**
  21. * A one-dimensional texture sampler for the GLSL profile.
  22. */
  23. class domGl_sampler1D_complexType : public domFx_sampler1D_common_complexType
  24. {
  25. protected:
  26. /**
  27. * Constructor
  28. */
  29. domGl_sampler1D_complexType(DAE& dae, daeElement* elt) : domFx_sampler1D_common_complexType(dae, elt) {}
  30. /**
  31. * Destructor
  32. */
  33. virtual ~domGl_sampler1D_complexType() {}
  34. /**
  35. * Overloaded assignment operator
  36. */
  37. virtual domGl_sampler1D_complexType &operator=( const domGl_sampler1D_complexType &cpy ) { (void)cpy; return *this; }
  38. };
  39. /**
  40. * An element of type domGl_sampler1D_complexType.
  41. */
  42. class domGl_sampler1D : public daeElement, public domGl_sampler1D_complexType
  43. {
  44. public:
  45. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLER1D; }
  46. static daeInt ID() { return 97; }
  47. virtual daeInt typeID() const { return ID(); }
  48. protected:
  49. /**
  50. * Constructor
  51. */
  52. domGl_sampler1D(DAE& dae) : daeElement(dae), domGl_sampler1D_complexType(dae, this) {}
  53. /**
  54. * Destructor
  55. */
  56. virtual ~domGl_sampler1D() {}
  57. /**
  58. * Overloaded assignment operator
  59. */
  60. virtual domGl_sampler1D &operator=( const domGl_sampler1D &cpy ) { (void)cpy; return *this; }
  61. public: // STATIC METHODS
  62. /**
  63. * Creates an instance of this class and returns a daeElementRef referencing it.
  64. * @return a daeElementRef referencing an instance of this object.
  65. */
  66. static DLLSPEC daeElementRef create(DAE& dae);
  67. /**
  68. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  69. * If a daeMetaElement already exists it will return that instead of creating a new one.
  70. * @return A daeMetaElement describing this COLLADA element.
  71. */
  72. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  73. };
  74. #endif