summaryrefslogtreecommitdiffstats
path: root/TextureLoader/interface/TextureUtilities.h
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-02 00:53:27 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-02 00:53:27 +0000
commite27e34a5fa07c473788b2112e274785562501b39 (patch)
tree33571015b28c8644919453bc17c9dca11e8f4553 /TextureLoader/interface/TextureUtilities.h
parentFixed minor UWP issue (diff)
downloadDiligentTools-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.h18
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