From 62533695db9298fb991b14a8933fc7a28e649dff Mon Sep 17 00:00:00 2001 From: Mamitiana RASOLOJAONA <iaesensei@yahoo.com> Date: Fri, 5 Apr 2024 14:06:24 +0200 Subject: [PATCH] fix bug --- enginecustom/Translate.xaml | 13 ------------- enginecustom/enginecustom.vcxproj | 13 ------------- enginecustom/enginecustom.vcxproj.filters | 10 ++++++++++ enginecustom/translate.cpp | 18 ------------------ enginecustom/translate.h | 21 --------------------- 5 files changed, 10 insertions(+), 65 deletions(-) delete mode 100644 enginecustom/Translate.xaml delete mode 100644 enginecustom/translate.cpp delete mode 100644 enginecustom/translate.h diff --git a/enginecustom/Translate.xaml b/enginecustom/Translate.xaml deleted file mode 100644 index 0780d74..0000000 --- a/enginecustom/Translate.xaml +++ /dev/null @@ -1,13 +0,0 @@ -<Page - x:Class="enginecustom.Translate" - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:enginecustom" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d"> - - <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> - <Button x:Name="Button" Click="ClickHandler">Click Me</Button> - </StackPanel> -</Page> diff --git a/enginecustom/enginecustom.vcxproj b/enginecustom/enginecustom.vcxproj index db59440..0dbe4d7 100644 --- a/enginecustom/enginecustom.vcxproj +++ b/enginecustom/enginecustom.vcxproj @@ -49,10 +49,6 @@ <ClCompile Include="textureclass.cpp" /> <ClCompile Include="textureshaderclass.cpp" /> <ClCompile Include="Timerclass.cpp" /> - <ClCompile Include="translate.cpp"> - <DependentUpon>translate.vs</DependentUpon> - <SubType>Code</SubType> - </ClCompile> <ClCompile Include="translateshaderclass.cpp" /> </ItemGroup> <ItemGroup> @@ -84,10 +80,6 @@ <ClInclude Include="textureclass.h" /> <ClInclude Include="textureshaderclass.h" /> <ClInclude Include="Timerclass.h" /> - <ClInclude Include="translate.h"> - <DependentUpon>translate.vs</DependentUpon> - <SubType>Code</SubType> - </ClInclude> <ClInclude Include="translateshaderclass.h" /> </ItemGroup> <ItemGroup> @@ -153,11 +145,6 @@ <SubType>Designer</SubType> </Midl> </ItemGroup> - <ItemGroup> - <Page Include="Translate.xaml"> - <SubType>Designer</SubType> - </Page> - </ItemGroup> <PropertyGroup Label="Globals"> <VCProjectVersion>17.0</VCProjectVersion> <Keyword>Win32Proj</Keyword> diff --git a/enginecustom/enginecustom.vcxproj.filters b/enginecustom/enginecustom.vcxproj.filters index d4d2071..bd8b086 100644 --- a/enginecustom/enginecustom.vcxproj.filters +++ b/enginecustom/enginecustom.vcxproj.filters @@ -114,6 +114,9 @@ <ClCompile Include="rendertextureclass.cpp"> <Filter>Fichiers sources</Filter> </ClCompile> + <ClCompile Include="translateshaderclass.cpp"> + <Filter>Fichiers sources</Filter> + </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="applicationclass.h"> @@ -200,6 +203,9 @@ <ClInclude Include="rendertextureclass.h"> <Filter>Fichiers d%27en-tête</Filter> </ClInclude> + <ClInclude Include="translateshaderclass.h"> + <Filter>Fichiers d%27en-tête</Filter> + </ClInclude> </ItemGroup> <ItemGroup> <Image Include="font01.tga"> @@ -304,4 +310,8 @@ <Filter>assets</Filter> </Text> </ItemGroup> + <ItemGroup> + <Midl Include="translate.ps" /> + <Midl Include="translate.vs" /> + </ItemGroup> </Project> \ No newline at end of file diff --git a/enginecustom/translate.cpp b/enginecustom/translate.cpp deleted file mode 100644 index 7bf765c..0000000 --- a/enginecustom/translate.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "pch.h" -#include "Translate.h" -#if __has_include("Translate.g.cpp") -#include "Translate.g.cpp" -#endif - -namespace winrt::enginecustom::implementation -{ - int32_t Translate::MyProperty() - { - throw hresult_not_implemented(); - } - - void Translate::MyProperty(int32_t /*value*/) - { - throw hresult_not_implemented(); - } -} diff --git a/enginecustom/translate.h b/enginecustom/translate.h deleted file mode 100644 index 5e8a544..0000000 --- a/enginecustom/translate.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include "Translate.g.h" - -namespace winrt::enginecustom::implementation -{ - struct Translate : TranslateT<Translate> - { - Translate() = default; - - int32_t MyProperty(); - void MyProperty(int32_t value); - }; -} - -namespace winrt::enginecustom::factory_implementation -{ - struct Translate : TranslateT<Translate, implementation::Translate> - { - }; -}