X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOpenGl%2FOpenGl_TextureFormat.hxx;h=bb4eb69f3e620ff5f48675e0241c21853b473495;hb=faff37677c2293ad207e6ad3e308aa65ffcd6375;hpb=691711cd3e118643fc475c59d6eb83f410de5c65 diff --git a/src/OpenGl/OpenGl_TextureFormat.hxx b/src/OpenGl/OpenGl_TextureFormat.hxx index 244f641fb7..bb4eb69f3e 100644 --- a/src/OpenGl/OpenGl_TextureFormat.hxx +++ b/src/OpenGl/OpenGl_TextureFormat.hxx @@ -14,6 +14,7 @@ #ifndef _OpenGl_TextureFormat_HeaderFile #define _OpenGl_TextureFormat_HeaderFile +#include #include #include #include @@ -47,6 +48,14 @@ public: Standard_EXPORT static OpenGl_TextureFormat FindSizedFormat (const Handle(OpenGl_Context)& theCtx, GLint theSizedFormat); + //! Find texture format suitable to specified compressed texture format. + //! @param theCtx [in] OpenGL context defining supported texture formats + //! @param theFormat [in] compressed texture format + //! @return found format or invalid format + Standard_EXPORT static OpenGl_TextureFormat FindCompressedFormat (const Handle(OpenGl_Context)& theCtx, + Image_CompressedFormat theFormat, + bool theIsColorMap); + public: //! Empty constructor (invalid texture format).