From 9b4a5c31ed1101b8c56e07fe48f73d60a339d737 Mon Sep 17 00:00:00 2001 From: Adam Jensen Date: Wed, 29 Jun 2022 14:52:31 +0100 Subject: [PATCH] d3d is made of structs, not classes --- rendering/PCDX11DeviceManager.h | 6 +++--- rendering/PCDX11RenderContext.h | 2 +- rendering/buffers/PCDX11ConstantBuffer.h | 2 +- rendering/buffers/PCDX11VertexBuffer.h | 2 +- rendering/shaders/PCDX11PixelShader.h | 2 +- rendering/shaders/PCDX11VertexShader.h | 2 +- spinnycube.h | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/rendering/PCDX11DeviceManager.h b/rendering/PCDX11DeviceManager.h index 090dde9..08fabea 100644 --- a/rendering/PCDX11DeviceManager.h +++ b/rendering/PCDX11DeviceManager.h @@ -3,9 +3,9 @@ #include "IPCDeviceManager.h" #include "shaders/PCDX11ShaderManager.h" -class ID3D11Device; -class IDXGIFactory; -class ID3D11DeviceContext; +struct ID3D11Device; +struct IDXGIFactory; +struct ID3D11DeviceContext; namespace cdc { diff --git a/rendering/PCDX11RenderContext.h b/rendering/PCDX11RenderContext.h index 7fcf886..a9de5e1 100644 --- a/rendering/PCDX11RenderContext.h +++ b/rendering/PCDX11RenderContext.h @@ -4,7 +4,7 @@ #include "PCDX11InternalResource.h" struct DXGI_MODE_DESC; -class ID3D11Texture2D; +struct ID3D11Texture2D; class IDXGISwapChain; namespace cdc { diff --git a/rendering/buffers/PCDX11ConstantBuffer.h b/rendering/buffers/PCDX11ConstantBuffer.h index 731ad12..29b1c03 100644 --- a/rendering/buffers/PCDX11ConstantBuffer.h +++ b/rendering/buffers/PCDX11ConstantBuffer.h @@ -2,7 +2,7 @@ #include #include -class ID3D11Buffer; +struct ID3D11Buffer; struct float4x4; namespace cdc { diff --git a/rendering/buffers/PCDX11VertexBuffer.h b/rendering/buffers/PCDX11VertexBuffer.h index a11a7af..a92c2f4 100644 --- a/rendering/buffers/PCDX11VertexBuffer.h +++ b/rendering/buffers/PCDX11VertexBuffer.h @@ -2,7 +2,7 @@ #include "CommonVertexBuffer.h" #include -class ID3D11Buffer; +struct ID3D11Buffer; namespace cdc { diff --git a/rendering/shaders/PCDX11PixelShader.h b/rendering/shaders/PCDX11PixelShader.h index d6fa751..e31d248 100644 --- a/rendering/shaders/PCDX11PixelShader.h +++ b/rendering/shaders/PCDX11PixelShader.h @@ -3,7 +3,7 @@ #include "../PCDX11InternalResource.h" #include "PCDX11Shader.h" -class ID3D11PixelShader; +struct ID3D11PixelShader; namespace cdc { diff --git a/rendering/shaders/PCDX11VertexShader.h b/rendering/shaders/PCDX11VertexShader.h index 21d805e..2f090bf 100644 --- a/rendering/shaders/PCDX11VertexShader.h +++ b/rendering/shaders/PCDX11VertexShader.h @@ -3,7 +3,7 @@ #include "../PCDX11InternalResource.h" #include "PCDX11Shader.h" -class ID3D11VertexShader; +struct ID3D11VertexShader; namespace cdc { diff --git a/spinnycube.h b/spinnycube.h index ffb3d0c..9699f36 100644 --- a/spinnycube.h +++ b/spinnycube.h @@ -1,7 +1,7 @@ #pragma once -class ID3D11Device; -class ID3D11DeviceContext; +struct ID3D11Device; +struct ID3D11DeviceContext; int spinnyCube( HWND hwnd,