Minor Update - Icon

Feat :

+ Ajout de l'icon pour l'application
This commit is contained in:
CatChow0 2024-04-08 17:33:11 +02:00
parent f59f371c0c
commit 219b6cefff
8 changed files with 27 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

View File

@ -276,8 +276,8 @@ void SystemClass::InitializeWindows(int& screenWidth, int& screenHeight)
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = m_hinstance;
wc.hIcon = LoadIcon(NULL, IDI_WINLOGO);
wc.hIconSm = wc.hIcon;
wc.hIcon = LoadIcon(m_hinstance,MAKEINTRESOURCE(IDI_ICON1));
wc.hIconSm = LoadIcon(m_hinstance, MAKEINTRESOURCE(IDI_ICON1));
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
wc.lpszMenuName = NULL;

View File

@ -93,6 +93,7 @@
<ClInclude Include="positionclass.h" />
<ClInclude Include="reflectionshaderclass.h" />
<ClInclude Include="rendertextureclass.h" />
<ClInclude Include="resources.h" />
<ClInclude Include="specmapshaderclass.h" />
<ClInclude Include="Spriteclass.h" />
<ClInclude Include="systemclass.h" />
@ -150,6 +151,7 @@
<Image Include="alpha01.tga" />
<Image Include="dirt01.tga" />
<Image Include="font01.tga" />
<Image Include="KhaoticIcon.ico" />
<Image Include="light01.tga" />
<Image Include="moss01.tga" />
<Image Include="normal01.tga" />
@ -175,6 +177,9 @@
<FileType>Document</FileType>
</None>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resources.rc" />
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>17.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>

View File

@ -281,6 +281,9 @@
<ClInclude Include="reflectionshaderclass.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
<ClInclude Include="resources.h">
<Filter>Fichiers d%27en-tête</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="font01.tga">
@ -313,6 +316,9 @@
<Image Include="..\..\..\..\Downloads\grass.tga">
<Filter>Assets</Filter>
</Image>
<Image Include="KhaoticIcon.ico">
<Filter>Assets</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
@ -372,6 +378,8 @@
</None>
<None Include="reflection.vs" />
<None Include="reflection.ps" />
<None Include="specmap.ps" />
<None Include="specmap.vs" />
</ItemGroup>
<ItemGroup>
<Text Include="font01.txt">
@ -394,11 +402,8 @@
</Text>
</ItemGroup>
<ItemGroup>
<FxCompile Include="specmap.vs">
<Filter>shader</Filter>
</FxCompile>
<FxCompile Include="specmap.ps">
<Filter>shader</Filter>
</FxCompile>
<ResourceCompile Include="resources.rc">
<Filter>Fichiers de ressources</Filter>
</ResourceCompile>
</ItemGroup>
</Project>

View File

@ -5,13 +5,14 @@ Size=400,400
[Window][Khaotic Engine]
Pos=260,25
Size=694,210
Collapsed=1
[Window][Objects]
Pos=222,19
Pos=1348,34
Size=492,353
[Window][Terrain]
Pos=892,19
Pos=1039,19
Size=418,94
[Window][Light]

2
enginecustom/resources.h Normal file
View File

@ -0,0 +1,2 @@
#pragma once
#define IDI_ICON1 101

View File

@ -0,0 +1,3 @@
#include "resources.h"
IDI_ICON1 ICON DISCARDABLE "KhaoticIcon.ico"

View File

@ -6,6 +6,7 @@
#include "inputclass.h"
#include "applicationclass.h"
#include "imguiManager.h"
#include "resources.h"
class SystemClass
{