qquick3dtexturedata.sip 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // qquick3dtexturedata.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtQuick3D Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QQuick3DTextureData : public QQuick3DObject
  22. {
  23. %TypeHeaderCode
  24. #include <qquick3dtexturedata.h>
  25. %End
  26. public:
  27. enum Format
  28. {
  29. None /PyName=None_/,
  30. RGBA8,
  31. RGBA16F,
  32. RGBA32F,
  33. RGBE8,
  34. R8,
  35. R16,
  36. R16F,
  37. R32F,
  38. BC1,
  39. BC2,
  40. BC3,
  41. BC4,
  42. BC5,
  43. BC6H,
  44. BC7,
  45. DXT1_RGBA,
  46. DXT1_RGB,
  47. DXT3_RGBA,
  48. DXT5_RGBA,
  49. ETC2_RGB8,
  50. ETC2_RGB8A1,
  51. ETC2_RGBA8,
  52. ASTC_4x4,
  53. ASTC_5x4,
  54. ASTC_5x5,
  55. ASTC_6x5,
  56. ASTC_6x6,
  57. ASTC_8x5,
  58. ASTC_8x6,
  59. ASTC_8x8,
  60. ASTC_10x5,
  61. ASTC_10x6,
  62. ASTC_10x8,
  63. ASTC_10x10,
  64. ASTC_12x10,
  65. ASTC_12x12,
  66. };
  67. QQuick3DTextureData(QQuick3DObject *parent /TransferThis/ = 0);
  68. virtual ~QQuick3DTextureData();
  69. const QByteArray textureData() const;
  70. void setTextureData(const QByteArray &data);
  71. QSize size() const;
  72. void setSize(const QSize &size);
  73. QQuick3DTextureData::Format format() const;
  74. void setFormat(QQuick3DTextureData::Format format);
  75. bool hasTransparency() const;
  76. void setHasTransparency(bool hasTransparency);
  77. %If (Qt_6_6_0 -)
  78. int depth() const;
  79. %End
  80. %If (Qt_6_6_0 -)
  81. void setDepth(int depth);
  82. %End
  83. };