diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-02-02 00:53:27 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-02-02 00:53:27 +0000 |
| commit | e27e34a5fa07c473788b2112e274785562501b39 (patch) | |
| tree | 33571015b28c8644919453bc17c9dca11e8f4553 /TextureLoader/interface/TextureUtilities.h | |
| parent | Fixed minor UWP issue (diff) | |
| download | DiligentTools-e27e34a5fa07c473788b2112e274785562501b39.tar.gz DiligentTools-e27e34a5fa07c473788b2112e274785562501b39.zip | |
Enabled C API for texture loading functions
Diffstat (limited to 'TextureLoader/interface/TextureUtilities.h')
| -rw-r--r-- | TextureLoader/interface/TextureUtilities.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/TextureLoader/interface/TextureUtilities.h b/TextureLoader/interface/TextureUtilities.h index b46f2d9..10174a8 100644 --- a/TextureLoader/interface/TextureUtilities.h +++ b/TextureLoader/interface/TextureUtilities.h @@ -35,8 +35,10 @@ #include "../../../DiligentCore/Graphics/GraphicsEngine/interface/RenderDevice.h" #include "TextureLoader.h" -namespace Diligent -{ +DILIGENT_BEGIN_NAMESPACE(Diligent) + + +#include "../../../DiligentCore/Primitives/interface/DefineGlobalFuncHelperMacros.h" /// Creates a texture from file @@ -44,9 +46,11 @@ namespace Diligent /// \param [in] TexLoadInfo - Texture loading information /// \param [in] pDevice - Render device that will be used to create the texture /// \param [out] ppTexture - Memory location where pointer to the created texture will be stored -void CreateTextureFromFile(const Char* FilePath, - const TextureLoadInfo& TexLoadInfo, - IRenderDevice* pDevice, - ITexture** ppTexture); +void DILIGENT_GLOBAL_FUNCTION(CreateTextureFromFile)(const Char* FilePath, + const TextureLoadInfo REF TexLoadInfo, + IRenderDevice* pDevice, + ITexture** ppTexture); + +#include "../../../DiligentCore/Primitives/interface/UndefGlobalFuncHelperMacros.h" -} // namespace Diligent +DILIGENT_END_NAMESPACE // namespace Diligent |
