// Created on: 2000-08-11 // Created by: Andrey BETENEV // Copyright (c) 2000-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _XCAFPrs_Texture_HeaderFile #define _XCAFPrs_Texture_HeaderFile #include "Graphic3d_Texture2D.hxx" #include "Graphic3d_TextureUnit.hxx" #include "Image_Texture.hxx" //! Texture holder. class XCAFPrs_Texture : public Graphic3d_Texture2D { DEFINE_STANDARD_RTTIEXT(XCAFPrs_Texture, Graphic3d_Texture2D) public: //! Constructor. Standard_EXPORT XCAFPrs_Texture(const occ::handle& theImageSource, const Graphic3d_TextureUnit theUnit); //! Image reader. Standard_EXPORT occ::handle GetCompressedImage( const occ::handle& theSupported) override; //! Image reader. Standard_EXPORT occ::handle GetImage( const occ::handle& theSupported) override; //! Return image source. const occ::handle& GetImageSource() const { return myImageSource; } protected: occ::handle myImageSource; }; #endif // _XCAFPrs_Texture_HeaderFile