From 10cd33e0e314cc02ac9779130b8cf9cc38867b4b Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 27 Jan 2020 11:01:19 -0800 Subject: Reworked C interfaces to share declaration with c++ --- Tests/IncludeTest/GraphicsEngine/BufferH_test.cpp | 2 +- Tests/IncludeTest/GraphicsEngine/BufferViewH_test.cpp | 2 +- Tests/IncludeTest/GraphicsEngine/CommandListH_test.cpp | 2 +- Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.c | 2 +- Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.cpp | 2 +- Tests/IncludeTest/GraphicsEngine/FenceH_test.cpp | 2 +- Tests/IncludeTest/GraphicsEngine/SwapChainH_test.cpp | 2 +- Tests/IncludeTest/GraphicsEngineD3D11/EngineFactoryD3D11H_test.c | 8 ++++---- 8 files changed, 11 insertions(+), 11 deletions(-) (limited to 'Tests/IncludeTest') diff --git a/Tests/IncludeTest/GraphicsEngine/BufferH_test.cpp b/Tests/IncludeTest/GraphicsEngine/BufferH_test.cpp index 92a9805f..f6d0235d 100644 --- a/Tests/IncludeTest/GraphicsEngine/BufferH_test.cpp +++ b/Tests/IncludeTest/GraphicsEngine/BufferH_test.cpp @@ -25,4 +25,4 @@ * of the possibility of such damages. */ -#include "DiligentCore/Graphics/GraphicsEngine/interface/Buffer.h" \ No newline at end of file +#include "DiligentCore/Graphics/GraphicsEngine/interface/Buffer.h" diff --git a/Tests/IncludeTest/GraphicsEngine/BufferViewH_test.cpp b/Tests/IncludeTest/GraphicsEngine/BufferViewH_test.cpp index b9d60fa7..f8c1c966 100644 --- a/Tests/IncludeTest/GraphicsEngine/BufferViewH_test.cpp +++ b/Tests/IncludeTest/GraphicsEngine/BufferViewH_test.cpp @@ -25,4 +25,4 @@ * of the possibility of such damages. */ -#include "DiligentCore/Graphics/GraphicsEngine/interface/BufferView.h" \ No newline at end of file +#include "DiligentCore/Graphics/GraphicsEngine/interface/BufferView.h" diff --git a/Tests/IncludeTest/GraphicsEngine/CommandListH_test.cpp b/Tests/IncludeTest/GraphicsEngine/CommandListH_test.cpp index d8b9f49c..dec3aa7c 100644 --- a/Tests/IncludeTest/GraphicsEngine/CommandListH_test.cpp +++ b/Tests/IncludeTest/GraphicsEngine/CommandListH_test.cpp @@ -25,4 +25,4 @@ * of the possibility of such damages. */ -#include "DiligentCore/Graphics/GraphicsEngine/interface/CommandList.h" \ No newline at end of file +#include "DiligentCore/Graphics/GraphicsEngine/interface/CommandList.h" diff --git a/Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.c b/Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.c index c05ee92f..c44ff2bc 100644 --- a/Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.c +++ b/Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.c @@ -34,4 +34,4 @@ void TestEngineFactortCInterface(struct IEngineFactory* pFactory) struct IShaderSourceInputStreamFactory* pShaderFactory = NULL; IEngineFactory_CreateDefaultShaderSourceStreamFactory(pFactory, "directories", &pShaderFactory); -} \ No newline at end of file +} diff --git a/Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.cpp b/Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.cpp index f447ac8c..98ccb4e7 100644 --- a/Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.cpp +++ b/Tests/IncludeTest/GraphicsEngine/EngineFactoryH_test.cpp @@ -25,4 +25,4 @@ * of the possibility of such damages. */ -#include "DiligentCore/Graphics/GraphicsEngine/interface/EngineFactory.h" \ No newline at end of file +#include "DiligentCore/Graphics/GraphicsEngine/interface/EngineFactory.h" diff --git a/Tests/IncludeTest/GraphicsEngine/FenceH_test.cpp b/Tests/IncludeTest/GraphicsEngine/FenceH_test.cpp index 907f88cf..e1a38af3 100644 --- a/Tests/IncludeTest/GraphicsEngine/FenceH_test.cpp +++ b/Tests/IncludeTest/GraphicsEngine/FenceH_test.cpp @@ -25,4 +25,4 @@ * of the possibility of such damages. */ -#include "DiligentCore/Graphics/GraphicsEngine/interface/Fence.h" \ No newline at end of file +#include "DiligentCore/Graphics/GraphicsEngine/interface/Fence.h" diff --git a/Tests/IncludeTest/GraphicsEngine/SwapChainH_test.cpp b/Tests/IncludeTest/GraphicsEngine/SwapChainH_test.cpp index 5a81b213..fd244d71 100644 --- a/Tests/IncludeTest/GraphicsEngine/SwapChainH_test.cpp +++ b/Tests/IncludeTest/GraphicsEngine/SwapChainH_test.cpp @@ -25,4 +25,4 @@ * of the possibility of such damages. */ -#include "DiligentCore/Graphics/GraphicsEngine/interface/SwapChain.h" \ No newline at end of file +#include "DiligentCore/Graphics/GraphicsEngine/interface/SwapChain.h" diff --git a/Tests/IncludeTest/GraphicsEngineD3D11/EngineFactoryD3D11H_test.c b/Tests/IncludeTest/GraphicsEngineD3D11/EngineFactoryD3D11H_test.c index 5099f9e0..0d05b7d9 100644 --- a/Tests/IncludeTest/GraphicsEngineD3D11/EngineFactoryD3D11H_test.c +++ b/Tests/IncludeTest/GraphicsEngineD3D11/EngineFactoryD3D11H_test.c @@ -39,16 +39,16 @@ void TestEngineFactoryD3D11CInterface() { GetEngineFactoryD3D11Type GetEngineFactoryD3D11 = LoadGraphicsEngineD3D11(); - class IEngineFactoryD3D11* pFactory = GetEngineFactoryD3D11(); + struct IEngineFactoryD3D11* pFactory = GetEngineFactoryD3D11(); struct EngineD3D11CreateInfo EngineCI = {0}; - class IRenderDevice* pDevice = NULL; - class IDeviceContext* pCtx = NULL; + IRenderDevice* pDevice = NULL; + IDeviceContext* pCtx = NULL; IEngineFactoryD3D11_CreateDeviceAndContextsD3D11(pFactory, &EngineCI, &pDevice, &pCtx); struct SwapChainDesc SCDesc = {0}; struct FullScreenModeDesc FSDes = {0}; void* pNativeWndHandle = NULL; - class ISwapChain* pSwapChain = NULL; + ISwapChain* pSwapChain = NULL; IEngineFactoryD3D11_CreateSwapChainD3D11(pFactory, pDevice, pCtx, &SCDesc, &FSDes, pNativeWndHandle, &pSwapChain); void* pd3d11NativeDevice = NULL; -- cgit v1.2.3