X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOpenGl%2FOpenGl_Sampler.hxx;h=8a2b91e08e1603f1f9477755469c572153218a55;hb=faff37677c2293ad207e6ad3e308aa65ffcd6375;hpb=691711cd3e118643fc475c59d6eb83f410de5c65 diff --git a/src/OpenGl/OpenGl_Sampler.hxx b/src/OpenGl/OpenGl_Sampler.hxx index bb742351f2..8a2b91e08e 100644 --- a/src/OpenGl/OpenGl_Sampler.hxx +++ b/src/OpenGl/OpenGl_Sampler.hxx @@ -129,13 +129,17 @@ protected: GLint theValue); //! Apply sampler parameters. - //! If Sampler Object is not NULL and valid resource, the parameters will be set to it (and it is not required Sampler Object being bound). - //! Otherwise, parameters will be applied to currently bound Texture object. + //! @param theCtx [in] active OpenGL context + //! @param theParams [in] texture parameters to apply + //! @param theSampler [in] apply parameters to Texture object (NULL) + //! or to specified Sampler object (non-NULL, sampler is not required to be bound) + //! @param theTarget [in] OpenGL texture target + //! @param theMaxMipLevel [in] maximum mipmap level defined within the texture Standard_EXPORT static void applySamplerParams (const Handle(OpenGl_Context)& theCtx, const Handle(Graphic3d_TextureParams)& theParams, OpenGl_Sampler* theSampler, const GLenum theTarget, - const bool theHasMipMaps); + const Standard_Integer theMaxMipLevel); //! Apply global texture state for deprecated OpenGL functionality. Standard_EXPORT static void applyGlobalTextureParams (const Handle(OpenGl_Context)& theCtx,