File indexing completed on 2025-01-18 10:05:35
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XCAFPrs_Texture_HeaderFile
0017 #define _XCAFPrs_Texture_HeaderFile
0018
0019 #include <Graphic3d_Texture2Dmanual.hxx>
0020 #include <Graphic3d_TextureUnit.hxx>
0021 #include <Image_Texture.hxx>
0022
0023
0024 class XCAFPrs_Texture : public Graphic3d_Texture2D
0025 {
0026 DEFINE_STANDARD_RTTIEXT(XCAFPrs_Texture, Graphic3d_Texture2D)
0027 public:
0028
0029
0030 Standard_EXPORT XCAFPrs_Texture (const Handle(Image_Texture)& theImageSource,
0031 const Graphic3d_TextureUnit theUnit);
0032
0033
0034 Standard_EXPORT virtual Handle(Image_CompressedPixMap) GetCompressedImage (const Handle(Image_SupportedFormats)& theSupported) Standard_OVERRIDE;
0035
0036
0037 Standard_EXPORT virtual Handle(Image_PixMap) GetImage (const Handle(Image_SupportedFormats)& theSupported) Standard_OVERRIDE;
0038
0039
0040 const Handle(Image_Texture)& GetImageSource() const { return myImageSource; }
0041
0042 protected:
0043
0044 Handle(Image_Texture) myImageSource;
0045 };
0046
0047 #endif